MainWindow.xaml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Window x:Class="WpfApp1.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:local="clr-namespace:WpfApp1"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="800" Width="1000"
  9. WindowStartupLocation="CenterScreen"
  10. WindowStyle="None"
  11. AllowsTransparency="True"
  12. Background="Transparent"
  13. Loaded="Window_Loaded"
  14. ResizeMode="CanResizeWithGrip"
  15. MinHeight="800"
  16. MinWidth="700">
  17. <Border x:Name="WindowBorder" CornerRadius="15" Background="White">
  18. <Border CornerRadius="15" Background="Azure" Margin="5 5 5 5" MouseDown="Border_MouseDown">
  19. <Grid Background="Transparent" Margin="5 5 5 5">
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="87*"/>
  22. <ColumnDefinition Width="893*"/>
  23. </Grid.ColumnDefinitions>
  24. <StackPanel Width="170" HorizontalAlignment="Right" Orientation="Horizontal" VerticalAlignment="Top" Grid.Column="1" Height="25">
  25. <Button Style="{StaticResource MaterialDesignOutlinedButton}" Click="Button_Click_3" Background="White" BorderBrush="Black" Foreground="Black" Content="←" FontWeight="Normal" FontSize="14" Width="50" Height="25" Margin="0 0 5 0"/>
  26. <Button Style="{StaticResource MaterialDesignOutlinedButton}" Click="Button_Click_1" Background="White" BorderBrush="Black" Foreground="Black" Content="_" FontWeight="Bold" FontSize="14" Width="50" Height="25" Margin="0 0 5 0"/>
  27. <Button Style="{StaticResource MaterialDesignOutlinedButton}" Click="Button_Click" Background="White" BorderBrush="Black" Foreground="Black" Content="X" FontWeight="Bold" FontSize="14" Width="50" Height="25"/>
  28. </StackPanel>
  29. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Margin="113,0,0,0" Height="210" Width="560">
  30. <ScrollViewer VerticalScrollBarVisibility="Auto">
  31. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Height="Auto">
  32. <Border Margin="10,10,10,10" CornerRadius="15" Background="#32373d" HorizontalAlignment="Center" Width="540">
  33. <Grid Margin="10 10 10 10">
  34. <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center">
  35. <Button Background="WhiteSmoke" Style="{StaticResource MaterialDesignPaperButton}" Click="Button_Click_2" Content="Падение тела" FontSize="30" Margin="20,0,20,0" BorderBrush="WhiteSmoke" BorderThickness="2" HorizontalAlignment="Center" Width="380" Height="50"/>
  36. <Button Background="WhiteSmoke" Style="{StaticResource MaterialDesignPaperButton}" Click="Button_Click_4" Content="Скольжение тела" FontSize="30" Margin="20,10,20,0" BorderBrush="WhiteSmoke" BorderThickness="2" HorizontalAlignment="Center" Width="380" Height="50"/>
  37. <Button Background="WhiteSmoke" Style="{StaticResource MaterialDesignPaperButton}" Click="Button_Click_5" Content="Популяция рыб" FontSize="30" Margin="20,10,20,0" BorderBrush="WhiteSmoke" BorderThickness="2" HorizontalAlignment="Center" Width="380" Height="50"/>
  38. </StackPanel>
  39. </Grid>
  40. </Border>
  41. </StackPanel>
  42. </ScrollViewer>
  43. </StackPanel>
  44. <Frame x:Name="Framechik" Margin="15,30,0,10" Cursor="Hand" NavigationUIVisibility="Hidden" HorizontalAlignment="Left" Width="950" Navigated="Framechik_Navigated" Grid.ColumnSpan="2" />
  45. </Grid>
  46. </Border>
  47. </Border>
  48. </Window>