|
21 | 21 | <ResourceDictionary Source="/Resources/RibbonIcons.xaml" /> |
22 | 22 | <ResourceDictionary Source="/Styles/PatternExpanderStyle.xaml" /> |
23 | 23 | <ResourceDictionary Source="/Styles/GroupStyle.xaml" /> |
| 24 | + <ResourceDictionary Source="/Styles/ElementToggleExpander.xaml" /> |
24 | 25 | </ResourceDictionary.MergedDictionaries> |
25 | 26 |
|
26 | 27 | <Style x:Key="SelectableLabel" |
|
213 | 214 | Text="Copied." /> |
214 | 215 | </Grid> |
215 | 216 | </Grid> |
| 217 | + |
| 218 | + <Grid> |
| 219 | + <Button Command="{Binding CopyDetailsToClipboardCommand}" |
| 220 | + Style="{StaticResource RibbonButtonStyle}" |
| 221 | + ToolTip="Copy current element state to clipboard"> |
| 222 | + <StackPanel Orientation="Vertical"> |
| 223 | + <Viewbox Width="20" |
| 224 | + Height="20" |
| 225 | + Stretch="Uniform"> |
| 226 | + <ContentControl Content="{StaticResource PropertiesIcon}" /> |
| 227 | + </Viewbox> |
| 228 | + </StackPanel> |
| 229 | + </Button> |
| 230 | + <Grid x:Name="CopiedNotificationGrid" |
| 231 | + Background="DarkBlue" |
| 232 | + Visibility="Collapsed"> |
| 233 | + <TextBlock HorizontalAlignment="Center" |
| 234 | + VerticalAlignment="Center" |
| 235 | + Foreground="White" |
| 236 | + Text="Copied." /> |
| 237 | + </Grid> |
| 238 | + </Grid> |
216 | 239 |
|
217 | 240 | <ToggleButton IsChecked="{Binding EnableXPath}" |
218 | 241 | Style="{StaticResource RibbonButtonStyle}"> |
|
265 | 288 | Height="16" |
266 | 289 | Click="ToggleButton_Click" |
267 | 290 | Focusable="False" |
| 291 | + Style="{StaticResource ElementToggleExpanderStyle}" |
268 | 292 | IsChecked="{Binding IsExpanded}" |
269 | 293 | Visibility="{Binding Children.Count, Converter={StaticResource CountToVisibilityConverter}}" /> |
270 | 294 |
|
|
304 | 328 | <Grid> |
305 | 329 | <DockPanel LastChildFill="True" |
306 | 330 | Visibility="{Binding TreeViewControl.SelectedItem, Converter={StaticResource NullToVisibilityConverter}}"> |
307 | | - <StackPanel Height="40" |
308 | | - HorizontalAlignment="Left" |
309 | | - VerticalAlignment="Top" |
310 | | - DockPanel.Dock="Top" |
311 | | - Orientation="Horizontal"> |
312 | | - <StackPanel.Resources> |
313 | | - <Style x:Key="RibbonButtonStyle" |
314 | | - TargetType="{x:Type ButtonBase}"> |
315 | | - <Setter Property="Width" Value="32" /> |
316 | | - <Setter Property="Height" Value="32" /> |
317 | | - <Setter Property="Margin" Value="4" /> |
318 | | - </Style> |
319 | | - </StackPanel.Resources> |
320 | | - <Grid> |
321 | | - <Button Command="{Binding CopyDetailsToClipboardCommand}" |
322 | | - Style="{StaticResource RibbonButtonStyle}" |
323 | | - ToolTip="Copy current element state to clipboard"> |
324 | | - <StackPanel Orientation="Vertical"> |
325 | | - <Viewbox Width="20" |
326 | | - Height="20" |
327 | | - Stretch="Uniform"> |
328 | | - <ContentControl Content="{StaticResource PropertiesIcon}" /> |
329 | | - </Viewbox> |
330 | | - </StackPanel> |
331 | | - </Button> |
332 | | - <Grid x:Name="CopiedNotificationGrid" |
333 | | - Background="DarkBlue" |
334 | | - Visibility="Collapsed"> |
335 | | - <TextBlock HorizontalAlignment="Center" |
336 | | - VerticalAlignment="Center" |
337 | | - Foreground="White" |
338 | | - Text="Copied." /> |
339 | | - </Grid> |
340 | | - </Grid> |
341 | | - <Grid Width="8" /> |
342 | | - <Button Command="{Binding CollapseAllDetailsCommand}" |
343 | | - Style="{StaticResource RibbonButtonStyle}" |
344 | | - ToolTip="Collapse all details"> |
345 | | - <StackPanel Orientation="Vertical"> |
346 | | - <Viewbox Width="20" |
347 | | - Height="20" |
348 | | - Stretch="Uniform"> |
349 | | - <ContentControl Content="{StaticResource CollapseIcon}" /> |
350 | | - </Viewbox> |
351 | | - </StackPanel> |
352 | | - </Button> |
353 | | - <Button Command="{Binding ExpandAllDetailsCommand}" |
354 | | - Style="{StaticResource RibbonButtonStyle}" |
355 | | - ToolTip="Expand all details"> |
356 | | - <StackPanel Orientation="Vertical"> |
357 | | - <Viewbox Width="20" |
358 | | - Height="20" |
359 | | - Stretch="Uniform"> |
360 | | - <ContentControl Content="{StaticResource ExpandIcon}" /> |
361 | | - </Viewbox> |
362 | | - </StackPanel> |
363 | | - </Button> |
364 | | - </StackPanel> |
365 | 331 | <ScrollViewer> |
366 | 332 | <ItemsControl ItemsSource="{Binding ElementPatterns}"> |
367 | 333 | <ItemsControl.ItemTemplate> |
|
0 commit comments