|
13 | 13 | xmlns:common="using:Microsoft.Toolkit.Uwp.SampleApp.Common"
|
14 | 14 | xmlns:core="using:Microsoft.Xaml.Interactions.Core"
|
15 | 15 | xmlns:models="using:Microsoft.Toolkit.Uwp.SampleApp.Models"
|
16 |
| - mc:Ignorable="d xamarin"> |
| 16 | + xmlns:triggers="clr-namespace:Microsoft.Toolkit.Uwp.SampleApp.Shared.Triggers" |
| 17 | + mc:Ignorable="d xamarin"> |
17 | 18 |
|
18 | 19 | <Grid>
|
19 | 20 |
|
|
93 | 94 | Grid.Column="1"
|
94 | 95 | Width="50"
|
95 | 96 | Visibility="Collapsed"
|
96 |
| - Click="{x:Bind OpenClosePane}"> |
| 97 | + Click="NarrowInfoButton_OnClick"> |
97 | 98 | <AppBarButton.Icon>
|
98 | 99 | <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" />
|
99 | 100 | </AppBarButton.Icon>
|
|
169 | 170 | Visibility="{x:Bind CanChangePaneState}"
|
170 | 171 | Icon="ClosePane"
|
171 | 172 | Width="50"
|
172 |
| - Height="50" |
173 |
| - Click="{x:Bind ExpandCollapsePane}" /> |
| 173 | + Height="50" |
| 174 | + Click="ExpandPane_OnClick" /> |
174 | 175 | </Pivot.LeftHeader>
|
175 | 176 |
|
176 | 177 | <PivotItem x:Name="PropertiesPivotItem"
|
|
255 | 256 | StackMode="QueueBehind"
|
256 | 257 | Margin="10"
|
257 | 258 | Canvas.ZIndex="999" />
|
258 |
| - |
| 259 | + |
259 | 260 | <Grid x:Name="waitRing"
|
260 | 261 | Grid.Row="1"
|
261 | 262 | Grid.RowSpan="3"
|
|
271 | 272 | IsActive="True" />
|
272 | 273 | </Grid>
|
273 | 274 | </Grid>
|
| 275 | + |
274 | 276 | <VisualStateManager.VisualStateGroups>
|
275 | 277 | <VisualStateGroup x:Name="WindowStates"
|
276 | 278 | CurrentStateChanged="WindowStates_CurrentStateChanged">
|
|
283 | 285 | <VisualState.Setters>
|
284 | 286 | <Setter Target="NarrowInfoButton.Visibility" Value="Visible" />
|
285 | 287 | <Setter Target="SampleTitleBar.(Grid.ColumnSpan)" Value="2" />
|
286 |
| - <Setter Target="InfoAreaPivot.Margin" Value="0,50,0,0" /> |
| 288 | + <Setter Target="InfoAreaGrid.Margin" Value="0,50,0,0" /> |
287 | 289 |
|
288 | 290 | <Setter Target="InfoAreaGrid.(Grid.Column)" Value="0" />
|
289 | 291 | <Setter Target="InfoAreaGrid.(Grid.ColumnSpan)" Value="2" />
|
|
302 | 304 | CurrentStateChanged="PaneStates_CurrentStateChanged">
|
303 | 305 | <VisualState x:Name="Full">
|
304 | 306 | <VisualState.StateTriggers>
|
305 |
| - <StateTrigger IsActive="{x:Bind SidePaneState.Equals(models:PaneState.Full), Mode=OneWay}" /> |
| 307 | + <triggers:PaneStateTrigger Binding="{x:Bind SidePaneState, Mode=OneWay}" Value="Full" /> |
306 | 308 | </VisualState.StateTriggers>
|
307 | 309 | <VisualState.Setters>
|
308 | 310 | <Setter Target="InfoAreaGrid.Visibility" Value="Visible" />
|
309 | 311 | <Setter Target="ExpandPane.Icon" Value="OpenPane" />
|
310 | 312 | <Setter Target="SampleTitleBar.(Grid.ColumnSpan)" Value="1" />
|
311 | 313 | <Setter Target="SampleTitleBar.(Grid.Column)" Value="0" />
|
312 |
| - <Setter Target="InfoAreaPivot.Margin" Value="0,50,0,0" /> |
| 314 | + <Setter Target="InfoAreaGrid.Margin" Value="0,50,0,0" /> |
313 | 315 |
|
314 | 316 | <Setter Target="InfoAreaGrid.(Grid.Column)" Value="0" />
|
315 | 317 | <Setter Target="InfoAreaGrid.(Grid.ColumnSpan)" Value="2" />
|
|
320 | 322 | </VisualState>
|
321 | 323 | <VisualState x:Name="Show">
|
322 | 324 | <VisualState.StateTriggers>
|
323 |
| - <StateTrigger IsActive="{x:Bind SidePaneState.Equals(models:PaneState.Normal), Mode=OneWay}" /> |
| 325 | + <triggers:PaneStateTrigger Binding="{x:Bind SidePaneState, Mode=OneWay}" Value="Normal" /> |
324 | 326 | </VisualState.StateTriggers>
|
325 | 327 | <VisualState.Setters>
|
326 | 328 | <Setter Target="InfoAreaGrid.Visibility" Value="Visible" />
|
|
329 | 331 | </VisualState>
|
330 | 332 | <VisualState x:Name="Hide">
|
331 | 333 | <VisualState.StateTriggers>
|
332 |
| - <StateTrigger IsActive="{x:Bind SidePaneState.Equals(models:PaneState.Closed), Mode=OneWay}" /> |
| 334 | + <triggers:PaneStateTrigger Binding="{x:Bind SidePaneState, Mode=OneWay}" Value="Closed" /> |
333 | 335 | </VisualState.StateTriggers>
|
334 | 336 | <VisualState.Setters>
|
335 | 337 | <Setter Target="InfoAreaGrid.Visibility" Value="Collapsed" />
|
|
338 | 340 | </VisualState>
|
339 | 341 | <VisualState x:Name="None">
|
340 | 342 | <VisualState.StateTriggers>
|
341 |
| - <StateTrigger IsActive="{x:Bind SidePaneState.Equals(models:PaneState.None), Mode=OneWay}" /> |
| 343 | + <triggers:PaneStateTrigger Binding="{x:Bind SidePaneState, Mode=OneWay}" Value="None" /> |
342 | 344 | </VisualState.StateTriggers>
|
343 | 345 | <VisualState.Setters>
|
344 | 346 | <Setter Target="InfoAreaGrid.Visibility" Value="Collapsed" />
|
|
0 commit comments