- Added centered WrapPanel to MainView to hold all top-level functions

- Changed ContentControl binding to ActiveItem
This commit is contained in:
SuperBrain 2020-07-16 18:11:42 +02:00
parent a215d8de82
commit 7521b372c7
2 changed files with 13 additions and 2 deletions

View File

@ -15,7 +15,18 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="COMPANY NAME" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,5" />
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
<WrapPanel.Resources>
<Style TargetType="Button">
<Setter Property="Width" Value="200" />
<Setter Property="Height" Value="120" />
<Setter Property="Margin" Value="5" />
</Style>
</WrapPanel.Resources>
<Button Content="Function 1" />
<Button Content="Function 2" />
<Button Content="Function 3" />
</WrapPanel>
<StatusBar Grid.Row="2">
<StatusBarItem Content="Ready" />
</StatusBar>

View File

@ -8,5 +8,5 @@
mc:Ignorable="d"
d:DataContext="{d:DesignInstance local:ShellViewModel}"
Title="Stylet Dynamic Menu" Height="600" Width="1200">
<ContentControl s:View.Model="{Binding MainVM}" />
<ContentControl s:View.Model="{Binding ActiveItem}" />
</Window>