You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Behaviors modifying the headers of ListView based components when scrolling.
4
+
description: Behaviors for modifying an element's movement/response when scrolling within a ScrollViewer.
5
5
keywords: Behaviors
6
6
dev_langs:
7
7
- csharp
@@ -12,22 +12,30 @@ issue-id: 0
12
12
icon: Assets/Behaviors.png
13
13
---
14
14
15
-
The `FadeHeaderBehavior`, `QuickReturnHeaderBehavior`, and `StickyHeaderBehavior` apply behaviors to `ListView`, `GridView`, and `HeaderedTreeView` Headers.
15
+
The `FadeHeaderBehavior`, `QuickReturnHeaderBehavior`, and `StickyHeaderBehavior` most commonly apply behaviors to `ListView`, `GridView`, and `HeaderedTreeView` elements in their `Header`. It can also be applied to any element contained at the top of a `ScrollViewer`.
16
+
17
+
They use composition animations to allow the visual of an element of a scrolling viewport to be manipulated for various effects.
18
+
19
+
To use the behavior, place it on the _element in the header to be manipulated_.
20
+
21
+
> [!NOTE]
22
+
> This is different in 8.x than it was in 7.x where the behavior was placed on the parent containing element (e.g. `ListView`).
23
+
> This change was made to enable more scenarios for these components.
16
24
17
25
## FadeHeaderBehavior
18
26
19
-
The FadeHeaderBehavior causes the Header of the scrolling collection to fade in and out as the user scrolls at the top of the collection.
27
+
The FadeHeaderBehavior causes the element in the scrolling collection to fade in and out as the user scrolls at the top of the collection.
20
28
21
29
> [!Sample FadeHeaderBehaviorSample]
22
30
23
31
## QuickReturnBehavior
24
32
25
-
The QuickReturnHeaderBehavior causes the Header of the scrolling collection to return back into view as soon as the user scrolls up even if they are not near the top of the collection.
33
+
The QuickReturnHeaderBehavior causes the element in the scrolling collection to return back into view as soon as the user scrolls up even if they are not near the top of the collection.
26
34
27
35
> [!Sample QuickReturnHeaderBehaviorSample]
28
36
29
37
## StickyHeaderBehavior
30
38
31
-
The StickyHeaderBehavior causes the Header of the scrolling collection to stay in view as the user scrolls up and down in the collection.
39
+
The StickyHeaderBehavior causes the element in the scrolling collection to stay in view as the user scrolls up and down in the collection.
// TODO: Not sure if we need to provide an option to turn these events off, as FadeHeaderBehavior didn't use these two, unlike QuickReturn/Sticky did...
0 commit comments