Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <UserControl
- x:Class="BeDesignerSCADA.Controls.RunCanvas"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:con="clr-namespace:BeDesignerSCADA.Converters"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BeDesignerSCADA.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.Resources>
- <con:ZoomConverter x:Key="ZoomX" IsHeight="False" />
- <con:ZoomConverter x:Key="ZoomY" IsHeight="True" />
- </UserControl.Resources>
- <Grid ClipToBounds="True">
- <Canvas
- x:Name="RootCanvas"
- Background="Transparent"
- ClipToBounds="True"
- MouseLeftButtonDown="RootCanvas_MouseLeftButtoDown"
- MouseLeftButtonUp="RootCanvas_MouseLeftButtonUp"
- MouseMove="RootCanvas_MouseMove"
- MouseWheel="RootCanvas_MouseWheel">
- <Canvas.RenderTransform>
- <TransformGroup>
- <ScaleTransform x:Name="Scale" />
- <TranslateTransform x:Name="Translate" />
- </TransformGroup>
- </Canvas.RenderTransform>
- </Canvas>
-
- <Grid VerticalAlignment="Bottom" Background="#4B959595">
- <StackPanel
- Margin="8,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <CheckBox
- x:Name="DragEnable"
- Margin="4"
- Content="拖动" />
- <CheckBox
- x:Name="ZoomEnable"
- Margin="4"
- Content="缩放" />
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|