-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
124 lines (100 loc) · 4.32 KB
/
MainWindow.xaml
File metadata and controls
124 lines (100 loc) · 4.32 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<Controls:MetroWindow
x:Class="NDI_Telestrator.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:NDI="clr-namespace:NewTek.NDI.WPF;assembly=NDILibDotNet2"
xmlns:XAMLConverters="clr-namespace:NDI_Telestrator.XAMLConverters"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:whiteboard="clr-namespace:NDI_Telestrator"
x:Name="this"
Title="NDI Telestrator"
Width="1280"
Height="800"
Background="Purple"
BorderBrush="DarkSlateGray"
BorderThickness="1"
FontFamily="Montserrat"
KeyDown="MainWindow_KeyDown"
WindowStartupLocation="CenterScreen">
<Controls:MetroWindow.Resources />
<Controls:MetroWindow.Flyouts>
<Controls:FlyoutsControl>
<whiteboard:OptionsDialogue x:Name="optionsDialogue" IsOpen="False" />
</Controls:FlyoutsControl>
</Controls:MetroWindow.Flyouts>
<Grid Margin="0,0,0,-6" HorizontalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Border
Grid.Row="1"
Margin="5"
VerticalAlignment="Center"
BorderBrush="Black"
BorderThickness="1">
<Grid Background="{DynamicResource MahApps.Brushes.Tile.Small}">
<!--<Grid Background="White">-->
<Grid Panel.ZIndex="1000">
<NDI:NdiSendContainer
x:Name="ndi"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
NdiFrameRateNumerator="30000"
NdiHeight="1080"
NdiName="Telestrator"
NdiWidth="1920">
<whiteboard:WhiteboardCanvas
x:Name="theWhiteboard"
Width="1920"
Height="1080"
ClipToBounds="True"
Cursor="Pen" />
</NDI:NdiSendContainer>
</Grid>
<whiteboard:BackgroundView x:Name="theBackground" ReceiverName="Telestrator" />
</Grid>
</Border>
<StackPanel
Grid.Row="2"
Margin="5"
HorizontalAlignment="Center"
Orientation="Horizontal">
<StackPanel.Resources>
<Style x:Key="ToolbarButtonStyle" TargetType="{x:Type Control}">
<Style.Setters>
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Margin" Value="0,0,0,3" />
</Style.Setters>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<!--<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.Gray8}" />-->
<Setter Property="Background" Value="Transparent" />
</Trigger>
</Style.Triggers>
</Style>
<XAMLConverters:ColorToSolidColorBrushNoTransparent x:Key="ColorToSolidColorBrushNoTransparent" />
</StackPanel.Resources>
<Border BorderBrush="Transparent" BorderThickness="0,0,0,3">
<Button
Width="30"
Height="32"
VerticalAlignment="Bottom"
materialDesign:RippleAssist.IsCentered="True"
Click="Btn_Options_Click"
ClipToBounds="True"
Foreground="Black"
Style="{StaticResource MaterialDesignToolForegroundButton}">
<materialDesign:PackIcon Kind="Settings" />
</Button>
</Border>
</StackPanel>
</Grid>
</Controls:MetroWindow>