Last active
June 21, 2017 04:07
-
-
Save syaifulnizamyahya/9986d66d6e421eb589296d4192c91e23 to your computer and use it in GitHub Desktop.
Template10 xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xmlns:Behaviors="using:Template10.Behaviors" | |
| xmlns:Core="using:Microsoft.Xaml.Interactions.Core" | |
| xmlns:Interactivity="using:Microsoft.Xaml.Interactivity" | |
| xmlns:controls="using:Template10.Controls" | |
| xmlns:vm="using:XXXXX.ViewModels" | |
| <Page.DataContext> | |
| <vm:XXXXXViewModel x:Name="ViewModel" /> | |
| </Page.DataContext> | |
| <RelativePanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | |
| <controls:PageHeader | |
| x:Name="pageHeader" | |
| RelativePanel.AlignLeftWithPanel="True" | |
| RelativePanel.AlignRightWithPanel="True" | |
| RelativePanel.AlignTopWithPanel="True" | |
| Text="XXXXX"> | |
| <!-- secondary commands --> | |
| <controls:PageHeader.SecondaryCommands> | |
| <!--<AppBarButton Click="{x:Bind ViewModel.GotoSettings}" Label="Settings" />--> | |
| <!--<AppBarButton Click="{x:Bind ViewModel.GotoPrivacy}" Label="Privacy" />--> | |
| <!--<AppBarButton Click="{x:Bind ViewModel.GotoAbout}" Label="About" />--> | |
| </controls:PageHeader.SecondaryCommands> | |
| </controls:PageHeader> | |
| <ScrollViewer | |
| Margin="16" | |
| EntranceNavigationTransitionInfo.IsTargetElement="True" | |
| HorizontalScrollBarVisibility="Auto" | |
| RelativePanel.AlignBottomWithPanel="True" | |
| RelativePanel.AlignLeftWithPanel="True" | |
| RelativePanel.AlignRightWithPanel="True" | |
| RelativePanel.Below="pageHeader" | |
| VerticalScrollBarVisibility="Auto"> | |
| <RelativePanel> | |
| <!-- Add contents here --> | |
| </RelativePanel> | |
| </ScrollViewer> | |
| <TextBlock | |
| x:Name="stateTextBox" | |
| Margin="16" | |
| RelativePanel.AlignBottomWithPanel="True" | |
| RelativePanel.AlignRightWithPanel="True" | |
| Text="Current Visual State" /> | |
| <VisualStateManager.VisualStateGroups> | |
| <VisualStateGroup x:Name="AdaptiveVisualStateGroup"> | |
| <VisualState x:Name="VisualStateNarrow"> | |
| <VisualState.StateTriggers> | |
| <AdaptiveTrigger MinWindowWidth="{StaticResource NarrowMinWidth}" /> | |
| </VisualState.StateTriggers> | |
| <VisualState.Setters> | |
| <!-- TODO: change properties for narrow view --> | |
| <Setter Target="stateTextBox.Text" Value="Narrow Visual State" /> | |
| </VisualState.Setters> | |
| </VisualState> | |
| <VisualState x:Name="VisualStateNormal"> | |
| <VisualState.StateTriggers> | |
| <AdaptiveTrigger MinWindowWidth="{StaticResource NormalMinWidth}" /> | |
| </VisualState.StateTriggers> | |
| <VisualState.Setters> | |
| <!-- TODO: change properties for normal view --> | |
| <Setter Target="stateTextBox.Text" Value="Normal Visual State" /> | |
| </VisualState.Setters> | |
| </VisualState> | |
| <VisualState x:Name="VisualStateWide"> | |
| <VisualState.StateTriggers> | |
| <AdaptiveTrigger MinWindowWidth="{StaticResource WideMinWidth}" /> | |
| </VisualState.StateTriggers> | |
| <VisualState.Setters> | |
| <!-- TODO: change properties for wide view --> | |
| <Setter Target="stateTextBox.Text" Value="Wide Visual State" /> | |
| </VisualState.Setters> | |
| </VisualState> | |
| </VisualStateGroup> | |
| </VisualStateManager.VisualStateGroups> | |
| </RelativePanel> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment