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

34 lines
1.8 KiB
XML

<UserControl x:Class="MilUI.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:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
mc:Ignorable="d"
Background="Transparent"
Loaded="UserControl_Loaded"
SizeChanged="UserControl_SizeChanged"
IsVisibleChanged="UserControl_IsVisibleChanged">
<Border Margin="2,5,2,0" Background="Transparent">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20*"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<WindowsFormsHost Grid.Row="0">
<wf:Panel x:Name="winFormPanel"
MouseDoubleClick="winFormPanel_MouseDoubleClick"/>
</WindowsFormsHost>
<StatusBar Grid.Row="1" Background="Transparent">
<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>