<Page.Resources>
<DataTemplate x:Key="BigHeaderTemplate">
<RelativePanel>
<TextBlock x:Uid="InkDrawHeader" Margin="{StaticResource SmallLeftMargin}" MaxLines="1" TextTrimming="CharacterEllipsis" RelativePanel.LeftOf="toolbar" RelativePanel.AlignLeftWithPanel="True" />
<InkToolbar
x:Name="toolbar"
Background="Transparent"
Loaded="OnInkToolbarLoaded"
RelativePanel.AlignHorizontalCenterWithPanel="True">
<InkToolbarCustomToolButton
x:Uid="InkDraw_LassoSelectionButton"
Background="Transparent"
IsChecked="{Binding Content.LassoSelectionButtonIsChecked, ElementName=shellFrame, Mode=TwoWay}">
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" />
</InkToolbarCustomToolButton>
<InkToolbarCustomToggleButton
x:Uid="InkDraw_TouchInkingButton"
Background="Transparent"
IsChecked="{Binding Content.TouchInkingButtonIsChecked, ElementName=shellFrame, Mode=TwoWay}">
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" />
</InkToolbarCustomToggleButton>
<InkToolbarCustomToggleButton
x:Uid="InkDraw_MouseInkingButton"
Background="Transparent"
IsChecked="{Binding Content.MouseInkingButtonIsChecked, ElementName=shellFrame, Mode=TwoWay}">
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" />
</InkToolbarCustomToggleButton>
</InkToolbar>
<CommandBar x:Name="topCommandBar" Style="{StaticResource InkCommandBarStyle}" RelativePanel.RightOf="toolbar" RelativePanel.AlignRightWithPanel="True">
<CommandBar.PrimaryCommands>
<AppBarButton
Click="Slide_Click"
Icon="Accept"/>
<AppBarButton
x:Uid="InkDraw_ZoomInButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ZoomIn_Click"
Icon="ZoomIn" />
<AppBarButton
x:Uid="InkDraw_ZoomOutButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ZoomOut_Click"
Icon="ZoomOut" />
</CommandBar.PrimaryCommands>
<CommandBar.SecondaryCommands>
<AppBarButton
x:Uid="InkDraw_CutButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Cut_Click"
Icon="Cut"
IsEnabled="{Binding Content.CutButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_CopyButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Copy_Click"
Icon="Copy"
IsEnabled="{Binding Content.CopyButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_PasteButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Paste_Click"
Icon="Paste"
IsEnabled="{Binding Content.PasteButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarSeparator />
<AppBarButton
x:Uid="InkDraw_UndoButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Undo_Click"
Icon="Undo"
IsEnabled="{Binding Content.UndoButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_RedoButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Redo_Click"
Icon="Redo"
IsEnabled="{Binding Content.RedoButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarSeparator />
<AppBarButton
x:Uid="InkDraw_LoadInkFileButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="LoadInkFile_Click"
Icon="OpenFile" />
<AppBarButton
x:Uid="InkDraw_SaveInkFileButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="SaveInkFile_Click"
Icon="Save"
IsEnabled="{Binding Content.SaveInkFileButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_ExportAsImageButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ExportAsImage_Click"
Icon="Download"
IsEnabled="{Binding Content.ExportAsImageButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
<AppBarSeparator />
<AppBarButton
x:Uid="InkDraw_ClearAllButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ClearAll_Click"
Icon="Delete"
IsEnabled="{Binding Content.ClearAllButtonIsEnabled, ElementName=shellFrame, Mode=OneWay}" />
</CommandBar.SecondaryCommands>
</CommandBar>
</RelativePanel>
</DataTemplate>
<DataTemplate x:Key="SmallHeaderTemplate">
<InkToolbar HorizontalAlignment="Center" Loaded="OnInkToolbarLoaded">
<InkToolbarCustomToolButton
x:Uid="InkDraw_LassoSelectionButton"
Background="Transparent"
IsChecked="{Binding Content.LassoSelectionButtonIsChecked, ElementName=shellFrame, Mode=TwoWay}">
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" />
</InkToolbarCustomToolButton>
<InkToolbarCustomToggleButton
x:Uid="InkDraw_TouchInkingButton"
Background="Transparent"
IsChecked="{Binding Content.TouchInkingButtonIsChecked, ElementName=shellFrame, Mode=TwoWay}">
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" />
</InkToolbarCustomToggleButton>
<InkToolbarCustomToggleButton
x:Uid="InkDraw_MouseInkingButton"
Background="Transparent"
IsChecked="{Binding Content.MouseInkingButtonIsChecked, ElementName=shellFrame, Mode=TwoWay}">
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" />
</InkToolbarCustomToggleButton>
</InkToolbar>
</DataTemplate>
</Page.Resources>
<Grid x:Name="ContentArea">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="visualStateGroup" CurrentStateChanged="VisualStateGroup_CurrentStateChanged">
<VisualState x:Name="SmallVisualState">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="0" />
</VisualState.StateTriggers>
</VisualState>
<VisualState x:Name="BigVisualState">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="720" />
</VisualState.StateTriggers>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollViewer
x:Name="canvasScroll"
Background="{ThemeResource SystemControlPageBackgroundChromeLowBrush}"
ScrollViewer.VerticalScrollBarVisibility="Auto"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ZoomMode="Enabled">
<Grid
Background="{StaticResource InkCanvasBackground}"
Width="{Binding ElementName=inkCanvas, Path=Width}"
Height="{Binding ElementName=inkCanvas, Path=Height}">
<InkCanvas
x:Name="inkCanvas"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" />
<Canvas
x:Name="selectionCanvas"
Width="{Binding ElementName=inkCanvas, Path=Width}"
Height="{Binding ElementName=inkCanvas, Path=Height}" />
</Grid>
</ScrollViewer>
<CommandBar
x:Name="bottomCommandBar"
Grid.Row="1"
Style="{StaticResource InkCommandBarStyle}">
<CommandBar.PrimaryCommands>
<AppBarButton
x:Uid="InkDraw_ZoomInButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ZoomIn_Click"
Icon="ZoomIn" />
<AppBarButton
x:Uid="InkDraw_ZoomOutButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ZoomOut_Click"
Icon="ZoomOut" />
</CommandBar.PrimaryCommands>
<CommandBar.SecondaryCommands>
<AppBarButton
x:Uid="InkDraw_CutButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Cut_Click"
Icon="Cut"
IsEnabled="{x:Bind CutButtonIsEnabled, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_CopyButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Copy_Click"
Icon="Copy"
IsEnabled="{x:Bind CopyButtonIsEnabled, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_PasteButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Paste_Click"
Icon="Paste"
IsEnabled="{x:Bind PasteButtonIsEnabled, Mode=OneWay}" />
<AppBarSeparator />
<AppBarButton
x:Uid="InkDraw_UndoButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Undo_Click"
Icon="Undo"
IsEnabled="{x:Bind UndoButtonIsEnabled, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_RedoButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="Redo_Click"
Icon="Redo"
IsEnabled="{x:Bind RedoButtonIsEnabled, Mode=OneWay}" />
<AppBarSeparator />
<AppBarButton
x:Uid="InkDraw_LoadInkFileButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="LoadInkFile_Click"
Icon="OpenFile" />
<AppBarButton
x:Uid="InkDraw_SaveInkFileButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="SaveInkFile_Click"
Icon="Save"
IsEnabled="{x:Bind SaveInkFileButtonIsEnabled, Mode=OneWay}" />
<AppBarButton
x:Uid="InkDraw_ExportAsImageButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ExportAsImage_Click"
Icon="Download"
IsEnabled="{x:Bind ExportAsImageButtonIsEnabled, Mode=OneWay}" />
<AppBarSeparator />
<AppBarButton
x:Uid="InkDraw_ClearAllButton"
BorderBrush="Transparent"
BorderThickness="0,0,0,0"
Click="ClearAll_Click"
Icon="Delete"
IsEnabled="{x:Bind ClearAllButtonIsEnabled, Mode=OneWay}" />
</CommandBar.SecondaryCommands>
</CommandBar>
<SplitView x:Name="SplitView"
Width="300"
Background="{StaticResource SystemChromeHighColor}"
DisplayMode="Overlay"
CompactPaneLength="48"
HorizontalAlignment="right"
IsPaneOpen="True" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="40"/>
<RowDefinition Height="20"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="170"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Opciones" Grid.Row="1" Grid.Column="0" Margin="10,0,0,0" Foreground="Black" FontSize="{StaticResource MediumFontSize}"/>
<TextBlock Text="Papel cuadriculado" Grid.Row="3" Grid.Column="0" Margin="10,0,0,0" Foreground="Black" FontSize="{StaticResource MediumFontSize}"/>
</Grid>
</SplitView>
</Grid>
</Page>