终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

50 righe
1.8 KiB

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