-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
35 lines (35 loc) · 1.82 KB
/
Copy pathMainWindow.axaml
File metadata and controls
35 lines (35 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:GeneralUpdate.Tools.ViewModels"
x:Class="GeneralUpdate.Tools.Views.MainWindow"
x:Name="MainWin"
x:DataType="vm:MainWindowViewModel"
Title="GeneralUpdate Tools" Width="960" Height="640" MinWidth="780" MinHeight="540"
WindowStartupLocation="CenterScreen">
<DockPanel>
<Border DockPanel.Dock="Left" Width="200" Background="{DynamicResource SystemControlBackgroundChromeMediumLowBrush}">
<Grid RowDefinitions="Auto,*">
<Border Grid.Row="0" Padding="18,20,18,12">
<TextBlock Text="GeneralUpdate Tools" FontSize="16" FontWeight="Bold"/>
</Border>
<ItemsControl Grid.Row="1" ItemsSource="{Binding NavItems}">
<ItemsControl.ItemTemplate>
<DataTemplate x:DataType="vm:NavItem">
<Button Content="{Binding Title}"
Command="{Binding ElementName=MainWin, Path=DataContext.NavigateCommand}"
CommandParameter="{Binding}"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Left"
Padding="18,10"
Margin="0"
Background="Transparent"
BorderThickness="0"
FontSize="13"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</Border>
<ContentControl Content="{Binding CurrentPage}"/>
</DockPanel>
</Window>