MainWindow.xaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <custom:WaaaghWindow x:Class="Waaagh.Views.MainWindow"
  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:vm="clr-namespace:Waaagh.ViewModels"
  7. xmlns:custom="clr-namespace:Waaagh.CustomControl"
  8. mc:Ignorable="d"
  9. Icon="C:\Users\L87\Desktop\touhou\琪露诺3.jpg"
  10. Title="MainWindow" Height="450" Width="800"
  11. d:DataContext="{d:DesignInstance vm:MainViewModel}" WindowStyle="SingleBorderWindow">
  12. <!--<custom:WaaaghWindow.TitleBarContent>
  13. <StackPanel Orientation="Horizontal">
  14. <Image Source="C:\Users\L87\Desktop\touhou\山城高岭.jpg"/>
  15. <TextBlock Text="山城高岭"/>
  16. </StackPanel>
  17. </custom:WaaaghWindow.TitleBarContent>-->
  18. <!--<custom:WaaaghWindow.TitleBarButtons>
  19. <Button Content="A"/>
  20. </custom:WaaaghWindow.TitleBarButtons>-->
  21. <Grid ShowGridLines="True">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="32"/>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="32"/>
  26. </Grid.RowDefinitions>
  27. <Border Grid.Row="1">
  28. <TextBlock FontSize="32" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Greeting}"/>
  29. </Border>
  30. </Grid>
  31. </custom:WaaaghWindow>