- Added centered WrapPanel to MainView to hold all top-level functions
- Changed ContentControl binding to ActiveItem
This commit is contained in:
parent
a215d8de82
commit
7521b372c7
|
@ -15,7 +15,18 @@
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Grid.Row="0" Text="COMPANY NAME" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,5" />
|
<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">
|
<StatusBar Grid.Row="2">
|
||||||
<StatusBarItem Content="Ready" />
|
<StatusBarItem Content="Ready" />
|
||||||
</StatusBar>
|
</StatusBar>
|
||||||
|
|
|
@ -8,5 +8,5 @@
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DataContext="{d:DesignInstance local:ShellViewModel}"
|
d:DataContext="{d:DesignInstance local:ShellViewModel}"
|
||||||
Title="Stylet Dynamic Menu" Height="600" Width="1200">
|
Title="Stylet Dynamic Menu" Height="600" Width="1200">
|
||||||
<ContentControl s:View.Model="{Binding MainVM}" />
|
<ContentControl s:View.Model="{Binding ActiveItem}" />
|
||||||
</Window>
|
</Window>
|
||||||
|
|
Loading…
Reference in New Issue