2019-09-04 18:26:26 +02:00
|
|
|
<UserControl x:Class="FancyZonesEditor.CanvasZone"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="clr-namespace:FancyZonesEditor"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Background="LightGray"
|
|
|
|
|
Opacity="0.75"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
<Grid x:Name="Frame">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="8"/>
|
|
|
|
|
<RowDefinition Height="16"/>
|
|
|
|
|
<RowDefinition Height="24"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="16"/>
|
|
|
|
|
<RowDefinition Height="8"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="8"/>
|
|
|
|
|
<ColumnDefinition Width="16"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="16"/>
|
|
|
|
|
<ColumnDefinition Width="8"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2020-03-10 15:50:44 +01:00
|
|
|
<Thumb x:Name="NWResize" Cursor="SizeNWSE" Background="Black" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" DragDelta="UniversalDragDelta" DragStarted="NWResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="NEResize" Cursor="SizeNESW" Background="Black" Grid.Row="0" Grid.Column="3" Grid.RowSpan="2" Grid.ColumnSpan="2" DragDelta="UniversalDragDelta" DragStarted="NEResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="SWResize" Cursor="SizeNESW" Background="Black" Grid.Row="4" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" DragDelta="UniversalDragDelta" DragStarted="SWResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="SEResize" Cursor="SizeNWSE" Background="Black" Grid.Row="4" Grid.Column="3" Grid.RowSpan="2" Grid.ColumnSpan="2" DragDelta="UniversalDragDelta" DragStarted="SEResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="NResize" Cursor="SizeNS" Background="Black" Margin="1,0,1,0" Grid.Row="0" Grid.Column="2" DragDelta="UniversalDragDelta" DragStarted="NResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="SResize" Cursor="SizeNS" Background="Black" Margin="1,0,1,0" Grid.Row="5" Grid.Column="2" DragDelta="UniversalDragDelta" DragStarted="SResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="WResize" Cursor="SizeWE" Background="Black" Margin="0,1,0,1" Grid.Row="2" Grid.Column="0" Grid.RowSpan="2" DragDelta="UniversalDragDelta" DragStarted="WResize_DragStarted"/>
|
|
|
|
|
<Thumb x:Name="EResize" Cursor="SizeWE" Background="Black" Margin="0,1,0,1" Grid.Row="2" Grid.Column="4" Grid.RowSpan="2" DragDelta="UniversalDragDelta" DragStarted="EResize_DragStarted"/>
|
2019-09-04 18:26:26 +02:00
|
|
|
<DockPanel Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="3">
|
|
|
|
|
<Button DockPanel.Dock="Right" Padding="8,0" Click="OnClose">
|
|
|
|
|
<Image Source="images/ChromeClose.png" Height="24" Width="24" />
|
|
|
|
|
</Button>
|
2020-03-10 15:50:44 +01:00
|
|
|
<Thumb x:Name="Caption" Cursor="SizeAll" Background="DarkGray" DragDelta="UniversalDragDelta" DragStarted="Caption_DragStarted"/>
|
2019-09-04 18:26:26 +02:00
|
|
|
</DockPanel>
|
|
|
|
|
<Rectangle Fill="LightGray" Grid.Row="3" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="3"/>
|
|
|
|
|
<Canvas x:Name="Body" />
|
2020-03-27 13:07:19 +01:00
|
|
|
<Label Name="LabelID"
|
|
|
|
|
Content="ID"
|
|
|
|
|
Canvas.Left="10"
|
|
|
|
|
Canvas.Bottom="10"
|
|
|
|
|
FontSize="80"
|
|
|
|
|
FontFamily="Segoe UI"
|
|
|
|
|
Foreground="Black"
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
|
HorizontalContentAlignment="Center" />
|
2019-09-04 18:26:26 +02:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|