Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 22d284d

Browse files
test
1 parent f337d5f commit 22d284d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎SimpleStateMachineNodeEditor/SimpleStateMachineNodeEditor.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ReactiveUI 11.4.17</PackageReleaseNotes>
6969
<PackageReference Include="ReactiveUI.WPF" Version="11.4.17" />
7070
<PackageReference Include="Splat" Version="9.4.5" />
7171
<PackageReference Include="Splat.Drawing" Version="9.4.5" />
72+
<PackageReference Include="Wpf.Controls.PanAndZoom" Version="2.3.3" />
7273
</ItemGroup>
7374

7475
<ItemGroup>

‎SimpleStateMachineNodeEditor/View/ViewNodesCanvas.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
xmlns:local="clr-namespace:SimpleStateMachineNodeEditor.View"
77
xmlns:View="clr-namespace:SimpleStateMachineNodeEditor.View"
88
xmlns:ViewModel="clr-namespace:SimpleStateMachineNodeEditor.ViewModel"
9+
xmlns:paz="clr-namespace:Wpf.Controls.PanAndZoom;assembly=Wpf.Controls.PanAndZoom"
910
mc:Ignorable="d"
1011
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}">
1317

1418
<local:ViewSelector x:Name="Selector" Panel.ZIndex="999"/>
1519
<local:ViewCutter x:Name="Cutter" Panel.ZIndex="999"/>
@@ -51,6 +55,7 @@
5155
</ItemsControl.ItemsSource>
5256
</ItemsControl>
5357
</Canvas>
58+
</paz:ZoomBorder>
5459
<UserControl.ContextMenu >
5560
<ContextMenu Template="{DynamicResource TemplateContextMenu}" Background="{DynamicResource ColorMenuBackground}" Foreground="{DynamicResource ColorMenuForeground}" BorderBrush="{DynamicResource ColorMenuBorder}" OpacityMask="{DynamicResource ColorMenuBackgroundMouseOver}" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center" >
5661
<MenuItem Header="Add" x:Name="ItemAddNode" InputGestureText="Ctrl + N" Style="{DynamicResource StyleContextMenuItem}" >

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /