-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
26 lines (26 loc) · 1.51 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
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:CustomVideoRenderer" x:Class="CustomVideoRenderer.MainWindow"
mc:Ignorable="d"
Title="Screen Sharing Example" Height="350" Width="525" MinWidth="320" MinHeight="240">
<Grid>
<UniformGrid x:Name="SubscriberGrid" Rows="1" Columns="0">
</UniformGrid>
<local:SampleVideoRenderer x:Name="PublisherVideo" HorizontalAlignment="Right" Height="114" VerticalAlignment="Bottom" Width="184" Margin="0,0,10.429,10.143" BorderBrush="#FF5B1919" BorderThickness="1" >
<local:SampleVideoRenderer.Effect>
<DropShadowEffect Opacity="0.6"/>
</local:SampleVideoRenderer.Effect>
<local:SampleVideoRenderer.Background>
<ImageBrush Stretch="UniformToFill">
</ImageBrush>
</local:SampleVideoRenderer.Background>
</local:SampleVideoRenderer>
<Grid HorizontalAlignment="Left" Height="200" VerticalAlignment="Top" Width="100">
<Button x:Name="ConnectDisconnectButton" Content="Connect" HorizontalAlignment="Left" Margin="10,10,0,160" Width="80" Click="Connect_Click"/>
<Button x:Name="FilterButton" Content="Toggle filter" HorizontalAlignment="Left" Margin="10,50,0,120" Width="80" Click="FilterButton_Click"/>
</Grid>
</Grid>
</Window>