终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="SCADA.Test.RunCanvas"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:con="clr-namespace:SCADA.Test.Converters"
  7. xmlns:local="clr-namespace:SCADA.Test"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <con:ZoomConverter x:Key="ZoomX" IsHeight="False"/>
  12. <con:ZoomConverter x:Key="ZoomY" IsHeight="True"/>
  13. </UserControl.Resources>
  14. <Grid ClipToBounds="True">
  15. <Canvas x:Name="RootCanvas" ClipToBounds="True" Background="Transparent" MouseLeftButtonUp="RootCanvas_MouseLeftButtonUp"
  16. MouseMove="RootCanvas_MouseMove" MouseLeftButtonDown="RootCanvas_MouseLeftButtoDown" MouseWheel="RootCanvas_MouseWheel">
  17. <Canvas.RenderTransform>
  18. <TransformGroup>
  19. <ScaleTransform x:Name="Scale"/>
  20. <TranslateTransform x:Name="Translate"/>
  21. </TransformGroup>
  22. </Canvas.RenderTransform>
  23. </Canvas>
  24. <Grid VerticalAlignment="Bottom" Background="#4B959595">
  25. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="8 0">
  26. <CheckBox x:Name="DragEnable" Content="拖动" Margin="4"/>
  27. <CheckBox x:Name="ZoomEnable" Content="缩放" Margin="4"/>
  28. </StackPanel>
  29. </Grid>
  30. </Grid>
  31. </UserControl>