mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-14 13:16:38 +08:00
箭头分离到独立的model中,方便自定义path
This commit is contained in:
29
AIStudio.Wpf.DiagramDesigner.Demo/Views/ZoomView.xaml
Normal file
29
AIStudio.Wpf.DiagramDesigner.Demo/Views/ZoomView.xaml
Normal file
@@ -0,0 +1,29 @@
|
||||
<UserControl x:Class="AIStudio.Wpf.DiagramDesigner.Demo.Views.ZoomView"
|
||||
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:dd="https://gitee.com/akwkevin/aistudio.-wpf.-diagram"
|
||||
xmlns:controls="clr-namespace:AIStudio.Wpf.DiagramDesigner.Demo.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<!-- Diagram Control -->
|
||||
<dd:DiagramControl x:Name="diagram" DataContext="{Binding DiagramViewModel}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
||||
|
||||
<Slider x:Name="zoomSlider"
|
||||
Minimum="0.5"
|
||||
Value="{Binding DiagramViewModel.ZoomValue}"
|
||||
Maximum="2.0"
|
||||
IsDirectionReversed="False"
|
||||
IsSnapToTickEnabled="True"
|
||||
TickFrequency="0.1"
|
||||
SmallChange="0.1"
|
||||
LargeChange="0.1"
|
||||
Width="200"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Top"/>
|
||||
|
||||
<controls:TitleControl/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user