2026-01-26 14:51:28 +09:00

34 lines
1.8 KiB
XML

<UserControl x:Class="CogUI.CameraDisplay"
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:vp="clr-namespace:Cognex.VisionPro.Display;assembly=Cognex.VisionPro.Display.Controls"
mc:Ignorable="d"
xmlns:local="clr-namespace:CogUI"
Background="Transparent"
Loaded="UserControl_Loaded"
SizeChanged="UserControl_SizeChanged"
IsVisibleChanged="UserControl_IsVisibleChanged">
<Border Margin="2,5,2,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<WindowsFormsHost Grid.Row="0">
<local:CustumCogDisplay x:Name="cogDisplay"
DoubleClick="cogDisplay_DoubleClick"/>
</WindowsFormsHost>
<StatusBar Grid.Row="1">
<StatusBarItem Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center">
<DockPanel>
<TextBlock Margin="5, 0" x:Name="curZoom" Text="" Foreground="{DynamicResource AVThemeForeground}"/>
<TextBlock Margin="5, 0" x:Name="curImagePoint" Text="" Foreground="{DynamicResource AVThemeForeground}"/>
<TextBlock Margin="5, 0" x:Name="curStaticPoint" Text="" Foreground="{DynamicResource AVThemeForeground}"/>
</DockPanel>
</StatusBarItem>
</StatusBar>
</Grid>
</Border>
</UserControl>