FullscreenButton.xaml 1.1 KB

123456789101112131415161718192021222324252627
  1. <UserControl
  2. x:Class="PicView.UI.UserControls.FullscreenButton"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  5. <Button
  6. x:Name="TheButton"
  7. Width="33"
  8. Height="33"
  9. VerticalAlignment="Center"
  10. BorderThickness="0"
  11. DockPanel.Dock="Right"
  12. FocusVisualStyle="{x:Null}"
  13. Focusable="False"
  14. ToolTip="Fullscreen">
  15. <Button.Background>
  16. <SolidColorBrush x:Name="FullscreenButtonBrush" />
  17. </Button.Background>
  18. <Path
  19. x:Name="MaxButtonPath"
  20. Width="12"
  21. Height="12"
  22. Data="M405.34 405.332H106.66V106.668H240V64H106.66C83.191 64 64 83.197 64 106.668v298.664C64 428.803 83.191 448 106.66 448h298.68c23.469 0 42.66-19.197 42.66-42.668V272h-42.66v133.332zM288 64v42.668h87.474L159.999 322.133l29.866 29.866 215.476-215.47V224H448V64H288z"
  23. Fill="{StaticResource MainColorBrush}"
  24. SnapsToDevicePixels="True"
  25. Stretch="Fill" />
  26. </Button>
  27. </UserControl>