Window1.xaml 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <Window x:Class="HistoryView.Views.Window1"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:HistoryView.Views"
  7. xmlns:controls="clr-namespace:HistoryView.Controls"
  8. mc:Ignorable="d"
  9. ResizeMode="NoResize"
  10. AllowsTransparency="True"
  11. MouseLeftButtonDown="This_MouseLeftButtonDown"
  12. WindowStyle="None"
  13. WindowStartupLocation="CenterScreen"
  14. SizeToContent="WidthAndHeight">
  15. <Window.Template>
  16. <ControlTemplate TargetType="Window">
  17. <Border BorderThickness="2" BorderBrush="{StaticResource DarkBorderColor}" Background="{StaticResource BackgroundColor}" CornerRadius="8">
  18. <Grid Margin="0">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto"/>
  21. <RowDefinition/>
  22. </Grid.RowDefinitions>
  23. <controls:Header CornerRadius="6,6,0,0"/>
  24. <!--<controls:Header x:Name="ThemeHeader" CornerRadius="8,8,0,0"/>-->
  25. <ContentPresenter Grid.Row="1"/>
  26. </Grid>
  27. </Border>
  28. </ControlTemplate>
  29. </Window.Template>
  30. </Window>