VaultSmpInstaller/Views/ProfileWindow2.axaml

22 lines
1.3 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:VaultSmpInstaller.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"
x:Class="VaultSmpInstaller.Views.ProfileWindow2"
x:DataType="vm:ProfileWindow2ViewModel"
Icon="/Assets/icon.ico"
Title="Select a Profile"
Width="400" Height="600"
WindowStartupLocation="CenterOwner"
CanResize="False">
<DockPanel Background="{Binding Background}">
<Grid Background="{Binding SecondaryBackground}" Margin="5" RowDefinitions="Auto, *, Auto">
<TextBlock Grid.Row="0" FontSize="18" Margin="0, 10">Select VH3 Instance</TextBlock>
<ListBox Grid.Row="1" SelectionChanged="SelectingItemsControl_OnSelectionChanged" Margin="10, 5" ItemsSource="{Binding InstanceNames}" />
<Button Grid.Row="2" IsEnabled="{Binding IsInstanceSelected}" Command="{Binding SelectProfileCommand}" FontSize="18" Margin="10, 5" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">Continue</Button>
</Grid>
</DockPanel>
</Window>