66 lines
No EOL
2.7 KiB
XML
66 lines
No EOL
2.7 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="using:MetaforceInstaller.UI.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:CompileBindings="True"
|
|
x:DataType="vm:MainWindowViewModel"
|
|
x:Class="MetaforceInstaller.UI.Windows.MainWindow"
|
|
Title="MetaforceInstaller">
|
|
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.ThemeDictionaries>
|
|
<ResourceDictionary x:Key="Light">
|
|
<SvgImage x:Key="Logo" Source="/Images/logo_red.svg" />
|
|
</ResourceDictionary>
|
|
|
|
<ResourceDictionary x:Key="Dark">
|
|
<SvgImage x:Key="Logo" Source="/Images/logo_red.svg" />
|
|
</ResourceDictionary>
|
|
</ResourceDictionary.ThemeDictionaries>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
|
|
<Design.DataContext>
|
|
<vm:MainWindowViewModel />
|
|
</Design.DataContext>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="96" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Image Grid.Row="0"
|
|
Margin="20"
|
|
VerticalAlignment="Center"
|
|
Source="{DynamicResource Logo}"
|
|
HorizontalAlignment="Left">
|
|
</Image>
|
|
|
|
<Button Grid.Row="0" Name="NewInstallationButton" Margin="20" VerticalAlignment="Center"
|
|
HorizontalAlignment="Right">
|
|
+ Add new installation
|
|
</Button>
|
|
|
|
<ScrollViewer Grid.Row="1">
|
|
<ItemsControl ItemsSource="{Binding Installations}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Expander Header="{Binding Title}" Margin="16, 8" HorizontalAlignment="Stretch">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Name="LaunchServerButton">Launch server</Button>
|
|
<Button Name="LaunchPcAdminButton">Launch PC admin</Button>
|
|
<Button Name="InstallVrClientButton">Install VR client</Button>
|
|
<Button Name="InstallAndroidAdminButton">Install Android admin</Button>
|
|
<Button Name="DeleteButton">Delete</Button>
|
|
</StackPanel>
|
|
</Expander>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Window> |