update mainwindow so it shows real installations
This commit is contained in:
parent
297a784956
commit
89c3dcb424
3 changed files with 65 additions and 236 deletions
|
|
@ -2,7 +2,10 @@
|
|||
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.MainWindow"
|
||||
Title="MetaforceInstaller">
|
||||
|
||||
|
|
@ -19,6 +22,10 @@
|
|||
</ResourceDictionary.ThemeDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
<Design.DataContext>
|
||||
<vm:MainWindowViewModel/>
|
||||
</Design.DataContext>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
|
|
@ -39,27 +46,17 @@
|
|||
</Button>
|
||||
|
||||
<ScrollViewer Grid.Row="1">
|
||||
<StackPanel Margin="10">
|
||||
<Expander Header="Item 1" Margin="0,5" HorizontalAlignment="Stretch">
|
||||
<TextBlock Text="Content for item 1" Margin="10" />
|
||||
</Expander>
|
||||
|
||||
<Expander Header="Item 2" Margin="0,5" HorizontalAlignment="Stretch">
|
||||
<TextBlock Text="Content for item 2" Margin="10" />
|
||||
</Expander>
|
||||
|
||||
<Expander Header="Item 3" Margin="0,5" HorizontalAlignment="Stretch">
|
||||
<TextBlock Text="Content for item 3" Margin="10" />
|
||||
</Expander>
|
||||
|
||||
<Expander Header="Item 4" Margin="0,5" HorizontalAlignment="Stretch">
|
||||
<TextBlock Text="Content for item 4" Margin="10" />
|
||||
</Expander>
|
||||
|
||||
<Expander Header="Item 5" Margin="0,5" HorizontalAlignment="Stretch">
|
||||
<TextBlock Text="Content for item 5" Margin="10" />
|
||||
</Expander>
|
||||
</StackPanel>
|
||||
<ItemsControl ItemsSource="{Binding Installations}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Expander Header="{Binding Title}" Margin="20, 0" HorizontalAlignment="Stretch">
|
||||
<StackPanel Margin="10">
|
||||
|
||||
</StackPanel>
|
||||
</Expander>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</Window>
|
||||
Loading…
Add table
Add a link
Reference in a new issue