|
6 | 6 | xmlns:local="clr-namespace:SimpleStateMachineNodeEditor.View"
|
7 | 7 | xmlns:View="clr-namespace:SimpleStateMachineNodeEditor.View"
|
8 | 8 | xmlns:ViewModel="clr-namespace:SimpleStateMachineNodeEditor.ViewModel"
|
| 9 | + xmlns:paz="clr-namespace:Wpf.Controls.PanAndZoom;assembly=Wpf.Controls.PanAndZoom" |
9 | 10 | mc:Ignorable="d"
|
10 | 11 | d:DesignHeight="450" d:DesignWidth="800" Focusable="True" AllowDrop="True" ClipToBounds="True">
|
11 | | - |
12 | | - <Canvas x:Name="Canvas" Background="{DynamicResource ColorNodesCanvasBackground}"> |
| 12 | + <paz:ZoomBorder Name="zoomBorder" Stretch="None" ZoomSpeed="1.2" |
| 13 | + Background="SlateBlue" ClipToBounds="True" Focusable="True" |
| 14 | + VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
| 15 | + Grid.Row="4" Grid.Column="1" > |
| 16 | + <Canvas x:Name="Canvas" Background="{DynamicResource ColorNodesCanvasBackground}"> |
13 | 17 |
|
14 | 18 | <local:ViewSelector x:Name="Selector" Panel.ZIndex="999"/>
|
15 | 19 | <local:ViewCutter x:Name="Cutter" Panel.ZIndex="999"/>
|
|
51 | 55 | </ItemsControl.ItemsSource>
|
52 | 56 | </ItemsControl>
|
53 | 57 | </Canvas>
|
| 58 | + </paz:ZoomBorder> |
54 | 59 | <UserControl.ContextMenu >
|
55 | 60 | <ContextMenu Template="{DynamicResource TemplateContextMenu}" Background="{DynamicResource ColorMenuBackground}" Foreground="{DynamicResource ColorMenuForeground}" BorderBrush="{DynamicResource ColorMenuBorder}" OpacityMask="{DynamicResource ColorMenuBackgroundMouseOver}" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center" >
|
56 | 61 | <MenuItem Header="Add" x:Name="ItemAddNode" InputGestureText="Ctrl + N" Style="{DynamicResource StyleContextMenuItem}" >
|
|
0 commit comments