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
Copy file name to clipboardExpand all lines: docs/animations/AnimationSet.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ The [`AnimationSet`](https://docs.microsoft.com/dotnet/api/microsoft.toolkit.uwp
16
16
## How it works
17
17
18
18
Each set can contain any number of animation scopes and individual nodes, which can be either animations or "activities":
19
+
19
20
-**Animation types** are a mapping in XAML for the various APIs exposed by the `AnimationBuilder` class. They are available as both "default" animations that are ready to use and "custom" animations that can be fully configured. Each animation type also supports using keyframes in addition to just defining the starting and final values.
20
21
-**Activites** on the other hand are a way to interleave an animation schedule with all sorts of custom logic, such as triggering other animations or running arbitrary code (eg. to update a visual state while an animation is running).
GroupInfoCollection<Mountain> info = new GroupInfoCollection<Mountain>();
48
+
info.Key = g.GroupName;
49
+
foreach (var item in g.Items)
50
+
{
51
+
info.Add(item);
52
+
}
53
+
mountains.Add(info);
54
54
}
55
55
```
56
56
@@ -72,31 +72,31 @@ The following walk-through shows how to implement and customize grouping in the
72
72
73
73
5. Customize the Group header values through **RowGroupHeaderStyles**, **RowGroupHeaderPropertyNameAlternative** properties and by handling the **LoadingRowGroup** event to alter the auto-generated values in code.
The DataGrid control does not support any built-in filtering capabilities. The following walk-through shows how you can implement your own filtering visuals and apply it to the DataGrid's content.
191
191
192
192
1. Add the DataGrid control to your XAML page.
193
193
194
-
```xaml
195
-
<controls:DataGrid
196
-
x:Name="dg"
197
-
Height="600"Margin="12"
198
-
AutoGenerateColumns="True"/>
199
-
```
194
+
```xaml
195
+
<controls:DataGrid
196
+
x:Name="dg"
197
+
Height="600"Margin="12"
198
+
AutoGenerateColumns="True"/>
199
+
```
200
200
201
201
2. Add buttons for filtering the DataGrid's content. It is recommended to use the **CommandBar** control with **AppBarButtons** to add filtering visuals at the top of your page. The following example shows a CommandBar with the title for the table and one filter button.
202
202
203
-
```xaml
204
-
<CommandBar
205
-
Background="White"
206
-
Margin="12"
207
-
IsOpen="True"
208
-
IsSticky="True"
209
-
DefaultLabelPosition="Right"
210
-
Content="Mountains table">
211
-
<AppBarButton
212
-
Icon="Filter"
213
-
Label="Filter by Rank < 50"
214
-
Click="rankLowFilter_Click">
215
-
</CommandBar>
216
-
```
203
+
```xaml
204
+
<CommandBar
205
+
Background="White"
206
+
Margin="12"
207
+
IsOpen="True"
208
+
IsSticky="True"
209
+
DefaultLabelPosition="Right"
210
+
Content="Mountains table">
211
+
<AppBarButton
212
+
Icon="Filter"
213
+
Label="Filter by Rank < 50"
214
+
Click="rankLowFilter_Click">
215
+
</CommandBar>
216
+
```
217
217
218
218
3. Handle the AppBarButton's Click event to implement the filtering logic.
0 commit comments