Commit 19f58f21 authored by HankG's avatar HankG

Add menu to MainWindow XAML

parent 94790c4c
......@@ -14,15 +14,24 @@
<vm:MainWindowViewModel/>
</Design.DataContext>
<Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="*">
<Button Grid.Row="0" Grid.Column="0" Width="100" Content="Load Newer" Command="{Binding LoadNewer}"/>
<ListBox Grid.Row="1" Grid.Column="0" Items="{Binding PostViewModels}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.ItemTemplate>
<DataTemplate>
<views:PostView Name="PostsView" DataContext="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Grid.Row="2" Grid.Column="0" Width="100" Content="Load Older" Command="{Binding LoadOlder}"/>
</Grid>
<DockPanel>
<Menu DockPanel.Dock="Top">
<MenuItem Header="_File">
<MenuItem Header="_Posts Import" Command="{Binding ImportPosts}" HotKey="CTRL+H"/>
<Separator/>
<MenuItem Header="Exit" Command="{Binding DoExit}"/>
</MenuItem>
</Menu>
<Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="*">
<Button Grid.Row="0" Grid.Column="0" Width="100" Content="Load Newer" Command="{Binding LoadNewer}"/>
<ListBox Grid.Row="1" Grid.Column="0" Items="{Binding PostViewModels}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.ItemTemplate>
<DataTemplate>
<views:PostView Name="PostsView" DataContext="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Grid.Row="2" Grid.Column="0" Width="100" Content="Load Older" Command="{Binding LoadOlder}"/>
</Grid>
</DockPanel>
</Window>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment