-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainWindow.xaml
38 lines (33 loc) · 1.81 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Window
x:Class="WinUI3_DirectShow_Capture.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinUI3_DirectShow_Capture"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="160"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="480"></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="0" Height="200" HorizontalAlignment="Right" VerticalAlignment="Center">
<Button x:Name="myButton" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0, 0, 10, 0" Width="140"
Click="myButton_Click" Content="Grab frame" >
</Button>
<Button x:Name="btnOverlay" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0, 50, 10, 0" Width="140"
Click="btnOverlay_Click" Content="Set Overlay">
<!--<TextBlock Text="Set Overlay" TextAlignment="Center"/>-->
</Button>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1" VerticalAlignment="Bottom">
<Border BorderThickness="2" BorderBrush ="Red" HorizontalAlignment="Left" Margin="10, 0, 0, 0">
<Image Name="image1" Width="640" Height="480" Stretch="Fill" VerticalAlignment="Top"/>
</Border>
</StackPanel>
</Grid>
</Window>