mirror of
https://gitee.com/wang-yin1/wpf-visual-process-framework
synced 2026-03-03 00:00:56 +08:00
2025-07-16 12:19
This commit is contained in:
25
VisionFrame.Base/Controls/CameraBox.xaml
Normal file
25
VisionFrame.Base/Controls/CameraBox.xaml
Normal file
@@ -0,0 +1,25 @@
|
||||
<UserControl x:Class="VisionFrame.Base.Controls.CameraBox"
|
||||
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:VisionFrame.Base.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid x:Name="viewport" Background="Transparent"
|
||||
MouseLeftButtonDown="viewport_MouseLeftButtonDown"
|
||||
MouseLeftButtonUp="viewport_MouseLeftButtonUp"
|
||||
MouseRightButtonUp="viewport_MouseRightButtonUp"
|
||||
MouseMove="viewport_MouseMove"
|
||||
MouseLeave="viewport_MouseLeave"
|
||||
MouseWheel="viewport_MouseWheel">
|
||||
<Canvas ClipToBounds="True">
|
||||
<Grid x:Name="imagebox">
|
||||
<Image x:Name="image"/>
|
||||
</Grid>
|
||||
<!--<Rectangle x:Name="rect" Stroke="Red" StrokeThickness="1" Fill="Transparent"/>-->
|
||||
<TextBlock x:Name="rectLabel" Foreground="Green" FontSize="12"/>
|
||||
</Canvas>
|
||||
<TextBlock x:Name="textblock" Foreground="Green" Text="0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="15"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user