2024-02-10 10:38:28 +01:00
|
|
|
<UserControl 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"
|
2024-02-16 02:23:58 +01:00
|
|
|
xmlns:reactiveui="http://reactiveui.net"
|
|
|
|
|
xmlns:vm="using:InkForge.Desktop.ViewModels"
|
|
|
|
|
xmlns:services="using:InkForge.Desktop.Services"
|
2024-02-10 10:38:28 +01:00
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
d:DesignHeight="450"
|
2024-02-16 02:23:58 +01:00
|
|
|
x:Class="InkForge.Desktop.Views.LandingView"
|
|
|
|
|
x:DataType="vm:LandingViewModel"
|
|
|
|
|
services:TopLevels.Register="{CompiledBinding}">
|
|
|
|
|
<Grid RowDefinitions="Auto, *, Auto">
|
2024-02-10 23:47:45 +01:00
|
|
|
<Label Content="Open Recent"
|
|
|
|
|
Grid.Row="0" />
|
|
|
|
|
|
2024-02-16 02:23:58 +01:00
|
|
|
<DataGrid IsEnabled="False"
|
|
|
|
|
IsReadOnly="True"
|
2024-02-10 23:47:45 +01:00
|
|
|
ItemsSource="{CompiledBinding RecentItems}"
|
|
|
|
|
Grid.Row="1">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Header="Created"
|
|
|
|
|
Binding="{CompiledBinding Created, StringFormat={}{0:d}}" />
|
|
|
|
|
<DataGridTextColumn Header="Name"
|
|
|
|
|
Width="*"
|
|
|
|
|
Binding="{CompiledBinding Name}" />
|
|
|
|
|
<DataGridTextColumn Header="Last Used"
|
|
|
|
|
Binding="{CompiledBinding LastUsed, StringFormat={}{0:d}}" />
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
2024-02-16 02:23:58 +01:00
|
|
|
|
|
|
|
|
<Menu Grid.Row="2">
|
|
|
|
|
<MenuItem Header="Create New"
|
|
|
|
|
Command="{CompiledBinding CreateNew}" />
|
|
|
|
|
<MenuItem Header="Open"
|
|
|
|
|
IsEnabled="False" />
|
|
|
|
|
<MenuItem Header="Open File"
|
|
|
|
|
Command="{CompiledBinding OpenNew}" />
|
|
|
|
|
</Menu>
|
2024-02-10 23:47:45 +01:00
|
|
|
</Grid>
|
2024-02-10 10:38:28 +01:00
|
|
|
</UserControl>
|