AboutWindow.axaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <Window
  2. BorderThickness="1"
  3. CanResize="False"
  4. CornerRadius="8"
  5. SizeToContent="WidthAndHeight"
  6. Title="Loading..."
  7. x:Class="PicView.Avalonia.Win32.Views.AboutWindow"
  8. x:DataType="viewModels:MainViewModel"
  9. xmlns="https://github.com/avaloniaui"
  10. xmlns:customControls="clr-namespace:PicView.Avalonia.CustomControls;assembly=PicView.Avalonia"
  11. xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels;assembly=PicView.Avalonia"
  12. xmlns:views="clr-namespace:PicView.Avalonia.Views;assembly=PicView.Avalonia"
  13. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  14. <Border
  15. BorderBrush="{DynamicResource WindowBorderColor}"
  16. BorderThickness="1"
  17. PointerPressed="MoveWindow"
  18. x:Name="ParentBorder">
  19. <StackPanel>
  20. <DockPanel Height="28" LastChildFill="True">
  21. <Border
  22. Background="{DynamicResource WindowButtonBackgroundColor}"
  23. BorderBrush="{DynamicResource MainBorderColor}"
  24. BorderThickness="0,0,1,0"
  25. DockPanel.Dock="Left"
  26. x:Name="IconBorder">
  27. <Image
  28. Height="25"
  29. Margin="7,1,7,1"
  30. Source="{StaticResource LogoImage}"
  31. Width="20" />
  32. </Border>
  33. <customControls:IconButton
  34. Background="{DynamicResource WindowButtonBackgroundColor}"
  35. BorderThickness="0"
  36. Classes="hover"
  37. Click="Close"
  38. ClickMode="Release"
  39. Data="{StaticResource CloseGeometry}"
  40. DockPanel.Dock="Right"
  41. Foreground="{DynamicResource MainTextColor}"
  42. IconHeight="10"
  43. IconWidth="10"
  44. Width="30"
  45. x:Name="CloseButton" />
  46. <customControls:IconButton
  47. Background="{DynamicResource WindowButtonBackgroundColor}"
  48. BorderBrush="{DynamicResource MainBorderColor}"
  49. BorderThickness="1,0,1,0"
  50. Classes="hover"
  51. Click="Minimize"
  52. Data="{StaticResource MinimizeGeometry}"
  53. DockPanel.Dock="Right"
  54. Foreground="{DynamicResource MainTextColor}"
  55. IconHeight="12"
  56. IconWidth="12"
  57. Width="30"
  58. x:Name="MinimizeButton" />
  59. <TextBlock
  60. Background="{DynamicResource WindowSecondaryBackgroundColor}"
  61. Classes="txt"
  62. Foreground="{DynamicResource MainTextColor}"
  63. Height="28"
  64. LineHeight="28"
  65. Padding="30,0,0,0"
  66. Text="{CompiledBinding About}"
  67. TextAlignment="Center"
  68. x:Name="TitleText" />
  69. </DockPanel>
  70. <Rectangle
  71. Fill="{DynamicResource WindowBorderColor}"
  72. Height="1"
  73. x:Name="BorderRectangle" />
  74. <views:AboutView
  75. Background="{DynamicResource NoisyTexture}"
  76. Focusable="True"
  77. Margin="0"
  78. Padding="10,2,5,10"
  79. PointerPressed="MoveWindow" />
  80. </StackPanel>
  81. </Border>
  82. </Window>