MainWindow.axaml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:Avalonia.UI.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="1000" d:DesignHeight="450"
  7. WindowStartupLocation="CenterScreen"
  8. x:Class="Avalonia.UI.Views.MainWindow"
  9. Icon="/Assets/avalonia-logo.ico"
  10. Title="{Binding Title}">
  11. <Design.DataContext>
  12. <vm:MainWindowViewModel />
  13. </Design.DataContext>
  14. <Grid Background="{Binding Color}">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="50"> </RowDefinition>
  17. <RowDefinition Height="50"> </RowDefinition>
  18. <RowDefinition Height="50"> </RowDefinition>
  19. <RowDefinition Height="50"> </RowDefinition>
  20. <RowDefinition Height="50"> </RowDefinition>
  21. <RowDefinition> </RowDefinition>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. <ColumnDefinition></ColumnDefinition>
  27. <ColumnDefinition></ColumnDefinition>
  28. <ColumnDefinition></ColumnDefinition>
  29. </Grid.ColumnDefinitions>
  30. <Image Grid.Column="0" Grid.Row="0" Margin="10,60,20,20" Width="150" Height="150" Source="/Assets/fbi.png">
  31. </Image>
  32. <StackPanel Grid.Row="0" Grid.Column="1">
  33. <Grid>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="500"></ColumnDefinition>
  36. </Grid.ColumnDefinitions>
  37. <Label FontFamily="Impact" FontStyle="25" Grid.Row="0" Grid.Column="0" Margin="1,1,1, 1" FontSize="50" Content="{Binding Title}"></Label>
  38. </Grid>
  39. </StackPanel>
  40. <Label FontFamily="Impact" FontStyle="25" Grid.Row="4" Grid.Column="0" Margin="1,1,1, 1" FontSize="25" Content="Разделы"></Label>
  41. <StackPanel Grid.Row="5" Grid.Column="0">
  42. <Grid>
  43. <Grid.RowDefinitions>
  44. <RowDefinition > </RowDefinition>
  45. <RowDefinition > </RowDefinition>
  46. <RowDefinition > </RowDefinition>
  47. </Grid.RowDefinitions>
  48. <Button HorizontalAlignment="Left" Click="MostWanted" FontFamily="Impact" FontSize="15" Margin="10,0,0,0" Grid.Row="0" Grid.Column="0" Content="Самые разыскиваемые" ></Button>
  49. <!-- <Button HorizontalAlignment="Left" Click="Statistic" FontFamily="Impact" FontStyle="25" Margin="15,0,0,0" Grid.Row="0" Grid.Column="0" Content="Статистика преступлений" ></Button>
  50. <Button HorizontalAlignment="Left" Click="Notes" FontFamily="Impact" FontStyle="25" Margin="15,0,0,0" Grid.Row="0" Grid.Column="0" Content="Пропавшие без вести"></Button> -->
  51. </Grid>
  52. </StackPanel>
  53. <ScrollViewer Grid.Column="3" Grid.Row="2" >
  54. <DataGrid Name="DataGrid" x:Name="DataInput" IsVisible="False" IsReadOnly="True" >
  55. <DataGrid.RowDetailsTemplate>
  56. <DataTemplate>
  57. <StackPanel>
  58. <TextBlock HorizontalAlignment="Center" Margin="10,10,10,10" FontFamily="Times New Roman" FontSize="12"></TextBlock>
  59. </StackPanel>
  60. </DataTemplate>
  61. </DataGrid.RowDetailsTemplate>
  62. </DataGrid>
  63. </ScrollViewer>
  64. <!--<TextBlock
  65. FontSize="30"
  66. FontFamily="Impact "
  67. Margin="20, 150,20,20"
  68. HorizontalAlignment="Left"
  69. TextAlignment="Right"
  70. FontStyle="Normal"
  71. Text="Разделы" />
  72. <Label Content="Что расследуем?" HorizontalAlignment="Right"
  73. Margin="100, 460,40,20" FontFamily="Impact " FontSize="20"/>
  74. <Button Content="Самые pазыскиваемые" HorizontalAlignment="Center" Margin="10, 10 ,220,200" Command="{Binding Command1 }"/>
  75. <Button Content="Статистика преступлений" HorizontalAlignment="Center" Margin="10, 10 ,200,100" Command="{Binding Command2 }"/>
  76. <Button Content="Пропавшие без вести" HorizontalAlignment="Center" Margin="10, 10 ,230,1" Command="{Binding Command3 }"/>
  77. <Button Content="Читать дальше" HorizontalAlignment="Right" Margin="10, 350 ,40,1" Command="{Binding Command4}"/>-->
  78. </Grid>
  79. </Window>