|
@@ -3,64 +3,92 @@
|
|
|
xmlns:vm="using:Avalonia.UI.ViewModels"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
+ mc:Ignorable="d" d:DesignWidth="1000" d:DesignHeight="450"
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
x:Class="Avalonia.UI.Views.MainWindow"
|
|
|
Icon="/Assets/avalonia-logo.ico"
|
|
|
- Title="Avalonia.UI">
|
|
|
+ Title="{Binding Title}">
|
|
|
+
|
|
|
|
|
|
- <Grid>
|
|
|
- <Design.DataContext>
|
|
|
+ <Design.DataContext>
|
|
|
<vm:MainWindowViewModel />
|
|
|
</Design.DataContext>
|
|
|
- <Panel>
|
|
|
- <ExperimentalAcrylicBorder IsHitTestVisible="False">
|
|
|
- <ExperimentalAcrylicBorder.Material>
|
|
|
- <ExperimentalAcrylicMaterial
|
|
|
- BackgroundSource="Digger"
|
|
|
- TintColor="Black"
|
|
|
- TintOpacity="1"
|
|
|
- MaterialOpacity="0.65" />
|
|
|
- </ExperimentalAcrylicBorder.Material>
|
|
|
- </ExperimentalAcrylicBorder>
|
|
|
- <StackPanel>
|
|
|
- <TextBlock
|
|
|
- FontSize="25"
|
|
|
- FontFamily="Impact "
|
|
|
- Margin="10, 10,20,20"
|
|
|
- TextAlignment="Right"
|
|
|
- FontStyle="Normal"
|
|
|
- Text="Разыскиваются ФБР" />
|
|
|
-
|
|
|
- </StackPanel>
|
|
|
+
|
|
|
+ <Grid Background="{Binding Color}">
|
|
|
+
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="50"> </RowDefinition>
|
|
|
+ <RowDefinition Height="50"> </RowDefinition>
|
|
|
+ <RowDefinition Height="50"> </RowDefinition>
|
|
|
+ <RowDefinition Height="50"> </RowDefinition>
|
|
|
+ <RowDefinition Height="50"> </RowDefinition>
|
|
|
+ <RowDefinition> </RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Image Grid.Column="0" Grid.Row="0" Margin="10,60,20,20" Width="150" Height="150" Source="/Assets/fbi.png">
|
|
|
+ </Image>
|
|
|
+
|
|
|
+ <StackPanel Grid.Row="0" Grid.Column="1">
|
|
|
<Grid>
|
|
|
- <TextBlock
|
|
|
- FontSize="20"
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="500"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Label FontFamily="Impact" FontStyle="25" Grid.Row="0" Grid.Column="0" Margin="1,1,1, 1" FontSize="50" Content="{Binding Title}"></Label>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ <Label FontFamily="Impact" FontStyle="25" Grid.Row="4" Grid.Column="0" Margin="1,1,1, 1" FontSize="25" Content="Разделы"></Label>
|
|
|
+ <StackPanel Grid.Row="5" Grid.Column="0">
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition > </RowDefinition>
|
|
|
+ <RowDefinition > </RowDefinition>
|
|
|
+ <RowDefinition > </RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <Button HorizontalAlignment="Left" Click="MostWanted" FontFamily="Impact" FontSize="15" Margin="10,0,0,0" Grid.Row="0" Grid.Column="0" Content="Самые разыскиваемые" ></Button>
|
|
|
+ <!-- <Button HorizontalAlignment="Left" Click="Statistic" FontFamily="Impact" FontStyle="25" Margin="15,0,0,0" Grid.Row="0" Grid.Column="0" Content="Статистика преступлений" ></Button>
|
|
|
+ <Button HorizontalAlignment="Left" Click="Notes" FontFamily="Impact" FontStyle="25" Margin="15,0,0,0" Grid.Row="0" Grid.Column="0" Content="Пропавшие без вести"></Button> -->
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+
|
|
|
+ <ScrollViewer Grid.Column="3" Grid.Row="2" >
|
|
|
+ <DataGrid Name="DataGrid" x:Name="DataInput" IsVisible="False" IsReadOnly="True" >
|
|
|
+ <DataGrid.RowDetailsTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock HorizontalAlignment="Center" Margin="10,10,10,10" FontFamily="Times New Roman" FontSize="12"></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGrid.RowDetailsTemplate>
|
|
|
+ </DataGrid>
|
|
|
+ </ScrollViewer>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--<TextBlock
|
|
|
+ FontSize="30"
|
|
|
FontFamily="Impact "
|
|
|
- Margin="100, 60,20,20"
|
|
|
+ Margin="20, 150,20,20"
|
|
|
HorizontalAlignment="Left"
|
|
|
TextAlignment="Right"
|
|
|
FontStyle="Normal"
|
|
|
Text="Разделы" />
|
|
|
<Label Content="Что расследуем?" HorizontalAlignment="Right"
|
|
|
- Margin="100, 260,40,20" FontFamily="Impact " FontSize="20"/>
|
|
|
- <!--<Button Content="Разделы" Margin="10, 50,20,20" Width="100" Height="40" HorizontalAlignment="Left" VerticalAlignment="Top" >
|
|
|
- <Button.ContextMenu>
|
|
|
- <ContextMenu>
|
|
|
- <Button Content="">
|
|
|
- </Button>
|
|
|
- <MenuItem Header="Элемент 2"/>
|
|
|
- <MenuItem Header="Элемент 3"/>
|
|
|
- <MenuItem Header="Элемент 4"/>
|
|
|
- </ContextMenu>
|
|
|
- </Button.ContextMenu>
|
|
|
- -->
|
|
|
- <Button Content="Самые Разыскиваемые" HorizontalAlignment="Center" Margin="10, 10 ,300,200" Command="{Binding Command1 }"/>
|
|
|
- <Button Content="Статистика преступлений" HorizontalAlignment="Center" Margin="10, 10 ,300,100" Command="{Binding Command2 }"/>
|
|
|
- <Button Content="Пропавшие без вести" HorizontalAlignment="Center" Margin="10, 10 ,300,1" Command="{Binding Command3 }"/>
|
|
|
- <Button Content="Читать дальше" HorizontalAlignment="Right" Margin="10, 200 ,40,1" Command="{Binding Command4}"/>
|
|
|
- </Grid>
|
|
|
- </Panel>
|
|
|
- </Grid>
|
|
|
- <!--<TextBlock Text="{Binding Greeting}" HorizontalAlignment="Center" VerticalAlignment="Center"/> -->
|
|
|
+ Margin="100, 460,40,20" FontFamily="Impact " FontSize="20"/>
|
|
|
+ <Button Content="Самые pазыскиваемые" HorizontalAlignment="Center" Margin="10, 10 ,220,200" Command="{Binding Command1 }"/>
|
|
|
+ <Button Content="Статистика преступлений" HorizontalAlignment="Center" Margin="10, 10 ,200,100" Command="{Binding Command2 }"/>
|
|
|
+ <Button Content="Пропавшие без вести" HorizontalAlignment="Center" Margin="10, 10 ,230,1" Command="{Binding Command3 }"/>
|
|
|
+ <Button Content="Читать дальше" HorizontalAlignment="Right" Margin="10, 350 ,40,1" Command="{Binding Command4}"/>-->
|
|
|
+
|
|
|
+
|
|
|
+ </Grid>
|
|
|
</Window>
|