Added Button to save - updated SplitView functionality - updated SplitViewOpenButton
This commit is contained in:
+33
-9
@@ -33,9 +33,9 @@
|
||||
</Design.DataContext>
|
||||
|
||||
<Panel Background="Transparent">
|
||||
<SplitView Background="Transparent" IsPaneOpen="{Binding IsSplitOpen, Mode=TwoWay}" DisplayMode="Overlay" OpenPaneLength="250">
|
||||
<SplitView Background="Transparent" IsPaneOpen="{Binding IsSplitOpen, Mode=TwoWay}" DisplayMode="Overlay" OpenPaneLength="250" ClipToBounds="False">
|
||||
<SplitView.Pane>
|
||||
<Border Background="Transparent" BorderBrush="Gray" BorderThickness="2">
|
||||
<Border Background="Transparent" BorderBrush="Gray" BorderThickness="2" BoxShadow="50 0 10 10 DarkGray" CornerRadius="0, 12.5,12.5,0" >
|
||||
<Grid Background="Transparent">
|
||||
<Grid Background="Transparent">
|
||||
<Grid.RowDefinitions>
|
||||
@@ -56,6 +56,7 @@
|
||||
<MenuItem Header="Paste"/>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Button DockPanel.Dock="Top" HorizontalAlignment="Right">X</Button>
|
||||
</DockPanel>
|
||||
|
||||
<StackPanel Grid.Row="1">
|
||||
@@ -91,7 +92,7 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</SplitView.Pane>
|
||||
<Canvas Grid.Column="1" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Canvas x:Name="Canvas" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<i:Interaction.Behaviors>
|
||||
<behaviors:EventTriggerBehavior EventName="PointerPressed">
|
||||
<behaviors:InvokeCommandAction
|
||||
@@ -128,12 +129,35 @@
|
||||
</ItemsControl>
|
||||
</Canvas>
|
||||
</SplitView>
|
||||
<Button Content="≡" Command="{Binding DisplaySplitEvent}" HorizontalAlignment="Left" VerticalAlignment="Top">
|
||||
<Button.RenderTransform>
|
||||
<TranslateTransform X="{Binding ButtonOffset}" />
|
||||
</Button.RenderTransform>
|
||||
<Button.Transitions>
|
||||
</Button.Transitions>
|
||||
<StackPanel Width="30" HorizontalAlignment="Left" IsVisible="{Binding !IsSplitOpen}" Background="#d4d4fc">
|
||||
<Button Content="≡" Command="{Binding DisplaySplitEvent}" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<Button.RenderTransform>
|
||||
<TranslateTransform X="{Binding ButtonOffset}" />
|
||||
</Button.RenderTransform>
|
||||
</Button>
|
||||
<Button HorizontalAlignment="Center"
|
||||
Margin="0,5,0,0"
|
||||
BorderBrush="DimGray"
|
||||
BorderThickness="2"
|
||||
CornerRadius="12.5"
|
||||
Background="{Binding SelectedColor}"
|
||||
Width="20"
|
||||
Height="20"
|
||||
/>
|
||||
</StackPanel>
|
||||
<Button HorizontalAlignment="Right"
|
||||
VerticalAlignment="Bottom"
|
||||
Margin="0,0,7.5,7.5"
|
||||
CornerRadius="5"
|
||||
Background="#d4d4ff"
|
||||
FontSize="18"
|
||||
Width="35"
|
||||
Height="35"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
Click="SaveFileButton_Clicked"
|
||||
>
|
||||
🖫
|
||||
</Button>
|
||||
</Panel>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user