|
@@ -8,24 +8,19 @@
|
|
Title="Sketch Assistant" Height="612" Width="914" SizeChanged="Window_SizeChanged">
|
|
Title="Sketch Assistant" Height="612" Width="914" SizeChanged="Window_SizeChanged">
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
- <ColumnDefinition Width="auto"/>
|
|
|
|
- <ColumnDefinition Width="auto"/>
|
|
|
|
- <ColumnDefinition Width="170*"/>
|
|
|
|
- <ColumnDefinition Width="55*"/>
|
|
|
|
- <ColumnDefinition Width="225*"/>
|
|
|
|
<ColumnDefinition Width="5"/>
|
|
<ColumnDefinition Width="5"/>
|
|
- <ColumnDefinition Width="226*"/>
|
|
|
|
- <ColumnDefinition Width="225*"/>
|
|
|
|
- <ColumnDefinition Width="auto"/>
|
|
|
|
- <ColumnDefinition Width="auto"/>
|
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
+ <ColumnDefinition Width="5"/>
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
+ <ColumnDefinition Width="5"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <ToolBar x:Name="MenuToolbar" Grid.Column="0" Grid.ColumnSpan="5" Grid.Row="0" Background="LightGray">
|
|
|
|
- <Menu Background="LightGray">
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" Background="LightGray">
|
|
|
|
+ <Menu Background="LightGray" VerticalAlignment="Center" Padding="5,0,0,0">
|
|
<MenuItem x:Name="LoadMenuButton" Header="Load">
|
|
<MenuItem x:Name="LoadMenuButton" Header="Load">
|
|
<MenuItem x:Name="ISADMenuButton" Header="Load .isad Drawing" Click="ISADMenuItem_Click"/>
|
|
<MenuItem x:Name="ISADMenuButton" Header="Load .isad Drawing" Click="ISADMenuItem_Click"/>
|
|
<MenuItem x:Name="SVGMenuButton" Header="Import SVG File" Click="SVGMenuItem_Click"/>
|
|
<MenuItem x:Name="SVGMenuButton" Header="Import SVG File" Click="SVGMenuItem_Click"/>
|
|
@@ -42,10 +37,11 @@
|
|
</MenuItem>
|
|
</MenuItem>
|
|
</MenuItem>
|
|
</MenuItem>
|
|
</Menu>
|
|
</Menu>
|
|
- </ToolBar>
|
|
|
|
- <!-- All Icons in the Toolbar taken from openclipart.org -->
|
|
|
|
- <ToolBar x:Name="DrawingToolBar" Grid.Column="6" Grid.Row="0" Grid.ColumnSpan="2" Background="LightGray">
|
|
|
|
- <Button x:Name="CanvasButton" ToolTip="Create a new Canvas" Click="CanvasButton_Click">
|
|
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="3" Background="LightGray">
|
|
|
|
+ <Canvas Name="ToolbarSpacer" Width="5" Background="LightGray" />
|
|
|
|
+ <!-- All Icons in the StackPanel taken from openclipart.org -->
|
|
|
|
+ <Button x:Name="CanvasButton" ToolTip="Create a new Canvas" Click="CanvasButton_Click" BorderThickness="0">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle.Fill>
|
|
<Rectangle.Fill>
|
|
<DrawingBrush>
|
|
<DrawingBrush>
|
|
@@ -74,7 +70,7 @@
|
|
</Rectangle.Fill>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
</Rectangle>
|
|
</Button>
|
|
</Button>
|
|
- <ToggleButton x:Name="DrawButton" ToolTip="Enter Drawing Mode" Click="DrawButton_Click">
|
|
|
|
|
|
+ <ToggleButton x:Name="DrawButton" ToolTip="Enter Drawing Mode" Click="DrawButton_Click" BorderThickness="0">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle.Fill>
|
|
<Rectangle.Fill>
|
|
<DrawingBrush>
|
|
<DrawingBrush>
|
|
@@ -89,7 +85,7 @@
|
|
</Rectangle.Fill>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
</Rectangle>
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
- <ToggleButton x:Name="DeleteButton" ToolTip="Enter Deletion Mode" Click="DeleteButton_Click">
|
|
|
|
|
|
+ <ToggleButton x:Name="DeleteButton" ToolTip="Enter Deletion Mode" Click="DeleteButton_Click" BorderThickness="0">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle.Fill>
|
|
<Rectangle.Fill>
|
|
<DrawingBrush>
|
|
<DrawingBrush>
|
|
@@ -131,7 +127,7 @@
|
|
</Rectangle.Fill>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
</Rectangle>
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
- <Button x:Name="UndoButton" ToolTip="Undo the last action" Click="UndoButton_Click">
|
|
|
|
|
|
+ <Button x:Name="UndoButton" ToolTip="Undo the last action" Click="UndoButton_Click" BorderThickness="0">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle.Fill>
|
|
<Rectangle.Fill>
|
|
<DrawingBrush>
|
|
<DrawingBrush>
|
|
@@ -153,7 +149,7 @@
|
|
</Rectangle.Fill>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
</Rectangle>
|
|
</Button>
|
|
</Button>
|
|
- <Button x:Name="RedoButton" ToolTip="Redo the last undone action" Click="RedoButton_Click">
|
|
|
|
|
|
+ <Button x:Name="RedoButton" ToolTip="Redo the last undone action" Click="RedoButton_Click" BorderThickness="0">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle Width="30" Height="30">
|
|
<Rectangle.Fill>
|
|
<Rectangle.Fill>
|
|
<DrawingBrush>
|
|
<DrawingBrush>
|
|
@@ -177,13 +173,15 @@
|
|
</Rectangle.Fill>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
</Rectangle>
|
|
</Button>
|
|
</Button>
|
|
- </ToolBar>
|
|
|
|
- <local:CustomCanvas x:Name="LeftCanvas" Background="SlateGray" Grid.Column="2" Grid.Row="1" Height="auto" Grid.ColumnSpan="3"/>
|
|
|
|
- <Canvas Name="CanvasSeperator" Grid.Column="5" Grid.Row="1" Background="LightGray" />
|
|
|
|
- <InkCanvas x:Name="RightCanvas" Background="SlateGray" Grid.Column="6" Grid.Row="1" Height="auto"
|
|
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <Canvas Name="CanvasLeftEdge" Grid.Column="0" Grid.Row="1" Background="LightGray" />
|
|
|
|
+ <Canvas x:Name="LeftCanvas" Background="SlateGray" Grid.Column="1" Grid.Row="1" Height="auto" Grid.ColumnSpan="1"/>
|
|
|
|
+ <Canvas Name="CanvasSeperator" Grid.Column="2" Grid.Row="1" Background="LightGray" />
|
|
|
|
+ <InkCanvas x:Name="RightCanvas" Background="SlateGray" Grid.Column="3" Grid.Row="1" Height="auto"
|
|
PreviewMouseDown="RightCanvas_MouseDown" MouseUp="RightCanvas_MouseUp" MouseMove="RightCanvas_MouseMove" Grid.ColumnSpan="2"
|
|
PreviewMouseDown="RightCanvas_MouseDown" MouseUp="RightCanvas_MouseUp" MouseMove="RightCanvas_MouseMove" Grid.ColumnSpan="2"
|
|
- StrokeCollected="RightCanvas_StrokeCollection" EditingMode="None"/>
|
|
|
|
|
|
+ StrokeCollected="RightCanvas_StrokeCollection" EditingMode="None" IsStylusCapturedChanged="RightCanvas_IsStylusCapturedChanged" LostTouchCapture="RightCanvas_LostTouchCapture" TouchUp="RightCanvas_TouchUp"/>
|
|
|
|
|
|
|
|
+ <Canvas Name="CanvasRightEdge" Grid.Column="4" Grid.Row="1" Background="LightGray" />
|
|
|
|
|
|
<DockPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="8">
|
|
<DockPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="8">
|
|
<StatusBar DockPanel.Dock="Bottom" Name="StatusBar" Background="LightGray">
|
|
<StatusBar DockPanel.Dock="Bottom" Name="StatusBar" Background="LightGray">
|