Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl
- x:Class="Diary.Views.MainView"
- xmlns="https://github.com/avaloniaui"
- 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:Diary.ViewModels"
- d:DesignHeight="450"
- d:DesignWidth="800"
- x:DataType="vm:MainViewModel"
- mc:Ignorable="d">
- <Grid RowDefinitions="auto, *">
- <Menu>
- <MenuItem Command="{Binging LogoutCommand}" Header="Logout" />
- </Menu>
- <Grid Grid.Row="1" ColumnDefinitions="150,*" RowDefinitions="auto,*">
- <TextBlock Text="{Binding LoggedInUserName}" />
- <ListBox Grid.Row="1" ItemsSource="{Binding Documents}" SelectedItem="{Binding SelectedDocument}">
- <ListBox..ItemTemplate>
- <DataTemplate x:DataType="vm:DocumentViewModel">
- <TextBlock Text="{Binding Title}" />
- </DataTemplate>
- </ListBox..ItemTemplate>
- </ListBox>
- <ContentControl Grid.RowSpan="2" Grid.Column="1" Content="{Binding SelectedDocument}" />
- </Grid>
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment