|
8 | 8 | xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
9 | 9 | xmlns:whiteboard="clr-namespace:NDI_Telestrator" |
10 | 10 | x:Name="this" |
11 | | - Title="Warrior Media Telestrator" |
| 11 | + Title="NDI Telestrator" |
12 | 12 | Width="1280" |
13 | 13 | Height="800" |
14 | 14 | Background="Purple" |
|
90 | 90 | <XAMLConverters:ColorToSolidColorBrushNoTransparent x:Key="ColorToSolidColorBrushNoTransparent" /> |
91 | 91 | </StackPanel.Resources> |
92 | 92 |
|
93 | | - <Border BorderBrush="Transparent" BorderThickness="0,0,0,3"> |
94 | | - <Button |
95 | | - Width="30" |
96 | | - Height="32" |
97 | | - VerticalAlignment="Bottom" |
98 | | - materialDesign:RippleAssist.IsCentered="True" |
99 | | - Click="Btn_Screenshot_Click" |
100 | | - ClipToBounds="True" |
101 | | - Style="{StaticResource MaterialDesignToolForegroundButton}"> |
102 | | - <materialDesign:PackIcon Kind="Camera" /> |
103 | | - </Button> |
104 | | - </Border> |
105 | | - |
106 | | - <Border BorderBrush="Transparent" BorderThickness="0,0,0,3"> |
107 | | - <Button |
108 | | - Width="30" |
109 | | - Height="32" |
110 | | - VerticalAlignment="Bottom" |
111 | | - materialDesign:RippleAssist.IsCentered="True" |
112 | | - Click="Btn_Delete_Click" |
113 | | - ClipToBounds="True" |
114 | | - IsEnabled="{Binding hasStrokes, ElementName=theWhiteboard}" |
115 | | - Style="{StaticResource MaterialDesignToolForegroundButton}"> |
116 | | - <materialDesign:PackIcon Kind="Delete" /> |
117 | | - </Button> |
118 | | - </Border> |
119 | | - |
120 | | - <Border BorderBrush="Transparent" BorderThickness="0,0,0,3"> |
121 | | - <Button |
122 | | - Width="30" |
123 | | - Height="32" |
124 | | - VerticalAlignment="Bottom" |
125 | | - materialDesign:RippleAssist.IsCentered="True" |
126 | | - Click="Btn_Undo_Click" |
127 | | - ClipToBounds="True" |
128 | | - IsEnabled="{Binding hasUndoContent, ElementName=theWhiteboard}" |
129 | | - Style="{StaticResource MaterialDesignToolForegroundButton}"> |
130 | | - <materialDesign:PackIcon Kind="Undo" /> |
131 | | - </Button> |
132 | | - </Border> |
133 | | - |
134 | | - <Border BorderBrush="Transparent" BorderThickness="0,0,0,3"> |
135 | | - <Button |
136 | | - Width="30" |
137 | | - Height="32" |
138 | | - VerticalAlignment="Bottom" |
139 | | - materialDesign:RippleAssist.IsCentered="True" |
140 | | - Click="Btn_Redo_Click" |
141 | | - ClipToBounds="True" |
142 | | - IsEnabled="{Binding hasRedoContent, ElementName=theWhiteboard}" |
143 | | - Style="{StaticResource MaterialDesignToolForegroundButton}"> |
144 | | - <materialDesign:PackIcon Kind="Redo" /> |
145 | | - </Button> |
146 | | - </Border> |
147 | | - |
148 | | - <Controls:ColorPicker |
149 | | - Controls:TextBoxHelper.ButtonWidth="0" |
150 | | - BorderThickness="0" |
151 | | - DefaultColor="Transparent" |
152 | | - SelectedColorChanged="onClrPickBackground" |
153 | | - Style="{StaticResource ToolbarButtonStyle}"> |
154 | | - |
155 | | - <Controls:ColorPicker.SelectedColorTemplate> |
156 | | - <DataTemplate> |
157 | | - <materialDesign:PackIcon Foreground="{Binding Converter={StaticResource ColorToSolidColorBrushNoTransparent}}" Kind="Image" /> |
158 | | - </DataTemplate> |
159 | | - </Controls:ColorPicker.SelectedColorTemplate> |
160 | | - </Controls:ColorPicker> |
161 | | - |
162 | | - <!-- https://github.com/MahApps/MahApps.Metro/blob/077161c41be0e74f81a0ad150a12495bd8b2237d/src/MahApps.Metro/Themes/ColorPicker/ColorPicker.xaml#L96 --> |
163 | | - <Controls:ColorPicker |
164 | | - Controls:TextBoxHelper.ButtonWidth="0" |
165 | | - BorderThickness="0" |
166 | | - DefaultColor="Black" |
167 | | - SelectedColorChanged="onClrPickPen" |
168 | | - Style="{StaticResource ToolbarButtonStyle}"> |
169 | 93 |
|
170 | | - <Controls:ColorPicker.SelectedColorTemplate> |
171 | | - <DataTemplate> |
172 | | - <materialDesign:PackIcon Foreground="{Binding Converter={StaticResource ColorToSolidColorBrushNoTransparent}}" Kind="Pencil" /> |
173 | | - </DataTemplate> |
174 | | - </Controls:ColorPicker.SelectedColorTemplate> |
175 | | - </Controls:ColorPicker> |
176 | 94 |
|
177 | | - <Controls:DropDownButton |
178 | | - HorizontalAlignment="Center" |
179 | | - HorizontalContentAlignment="Center" |
180 | | - ArrowVisibility="Collapsed" |
181 | | - BorderThickness="0" |
182 | | - DataContext="{Binding handleSelectThickness, ElementName=this}" |
183 | | - Style="{StaticResource ToolbarButtonStyle}"> |
184 | | - <Controls:DropDownButton.Icon> |
185 | | - <materialDesign:PackIcon Kind="Circle" /> |
186 | | - </Controls:DropDownButton.Icon> |
187 | | - <Controls:DropDownButton.ItemContainerStyle> |
188 | | - <Style BasedOn="{StaticResource {x:Type MenuItem}}" TargetType="{x:Type MenuItem}"> |
189 | | - <Setter Property="Command" Value="{Binding DataContext}" /> |
190 | | - <Setter Property="Width" Value="90" /> |
191 | | - <Setter Property="CommandParameter" Value="{Binding Tag}" /> |
192 | | - </Style> |
193 | | - </Controls:DropDownButton.ItemContainerStyle> |
194 | | - <Controls:DropDownButton.Resources> |
195 | 95 |
|
196 | | - <!-- materialDesign:PackIcon --> |
197 | | - <Style x:Key="IconStyle" TargetType="{x:Type materialDesign:PackIcon}"> |
198 | | - <Setter Property="Width" Value="30" /> |
199 | | - <Setter Property="Height" Value="32" /> |
200 | | - <Setter Property="VerticalAlignment" Value="Bottom" /> |
201 | | - <Setter Property="ClipToBounds" Value="True" /> |
202 | | - <Setter Property="Foreground" Value="Black" /> |
203 | | - <Setter Property="Kind" Value="Circle" /> |
204 | | - <Setter Property="RenderTransformOrigin" Value="0.5,0.5" /> |
205 | | - </Style> |
206 | | - </Controls:DropDownButton.Resources> |
207 | | - <Controls:DropDownButton.Items> |
208 | 96 |
|
209 | | - <materialDesign:PackIcon Style="{StaticResource IconStyle}" Tag="1.0"> |
210 | | - <materialDesign:PackIcon.RenderTransform> |
211 | | - <ScaleTransform ScaleX="0.2" ScaleY="0.2" /> |
212 | | - </materialDesign:PackIcon.RenderTransform> |
213 | | - </materialDesign:PackIcon> |
214 | 97 |
|
215 | | - <materialDesign:PackIcon Style="{StaticResource IconStyle}" Tag="2.0"> |
216 | | - <materialDesign:PackIcon.RenderTransform> |
217 | | - <ScaleTransform ScaleX="0.4" ScaleY="0.4" /> |
218 | | - </materialDesign:PackIcon.RenderTransform> |
219 | | - </materialDesign:PackIcon> |
220 | 98 |
|
221 | 99 |
|
222 | | - <materialDesign:PackIcon Style="{StaticResource IconStyle}" Tag="3.0"> |
223 | | - <materialDesign:PackIcon.RenderTransform> |
224 | | - <ScaleTransform ScaleX="0.6" ScaleY="0.6" /> |
225 | | - </materialDesign:PackIcon.RenderTransform> |
226 | | - </materialDesign:PackIcon> |
227 | 100 |
|
228 | | - <materialDesign:PackIcon Style="{StaticResource IconStyle}" Tag="4.0"> |
229 | | - <materialDesign:PackIcon.RenderTransform> |
230 | | - <ScaleTransform ScaleX="0.8" ScaleY="0.8" /> |
231 | | - </materialDesign:PackIcon.RenderTransform> |
232 | | - </materialDesign:PackIcon> |
233 | 101 |
|
234 | | - <materialDesign:PackIcon Style="{StaticResource IconStyle}" Tag="5.0" /> |
235 | 102 |
|
236 | | - </Controls:DropDownButton.Items> |
237 | | - </Controls:DropDownButton> |
| 103 | + |
238 | 104 |
|
239 | 105 | <Border BorderBrush="Transparent" BorderThickness="0,0,0,3"> |
240 | 106 | <Button |
|
0 commit comments