31 lines
2.1 KiB
XML
31 lines
2.1 KiB
XML
<UserControl x:Class="MainShell.Common.Display.View.CameraAxisView"
|
|
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:local="clr-namespace:MainShell.Common.Display.View"
|
|
xmlns:control="http://www.maxwell.com/controls"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<Grid>
|
|
<CheckBox Panel.ZIndex="2" IsChecked="{Binding IsOpen, UpdateSourceTrigger=PropertyChanged}" Cursor="Hand" Margin="2,2" Foreground="White" HorizontalAlignment="Right" VerticalAlignment="Top">
|
|
<TextBlock Text="移动"/>
|
|
</CheckBox>
|
|
<control:CameraAxisControlA Name="cameraAxisControl"
|
|
IsShowDoubleLine="False"
|
|
IsAxisControlLDBVisible2="Visible"
|
|
Cameras="{Binding CameraAxisDevices.HardwareDeviceList}"
|
|
TabSelectedIndex ="{Binding CameraAxisDevices.SelectedIndex}"
|
|
Items="{Binding CameraAxisDevices.Shapes,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
Regions="{Binding CameraAxisDevices.Regions}" ShapeThickness="1" IsShowSolidLine="True" DrawInConcurrency="False"
|
|
>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="RecordPix">
|
|
<i:InvokeCommandAction Command="{Binding OnLeftMouseDownCommand}" CommandParameter="{Binding ElementName=cameraAxisControl}" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</control:CameraAxisControlA>
|
|
</Grid>
|
|
</UserControl>
|