57 lines
3.1 KiB
Plaintext
57 lines
3.1 KiB
Plaintext
|
<Window 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:ui="clr-namespace:Notes.UI"
|
||
|
xmlns:viewModels="clr-namespace:Notes.ViewModels;assembly=Notes.Data"
|
||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||
|
x:Class="Notes.UI.MainWindow"
|
||
|
Icon="/Assets/avalonia-logo.ico"
|
||
|
Title="Notes"
|
||
|
x:DataType="viewModels:ViewModel1">
|
||
|
<ui:MainView/>
|
||
|
<!-- <Window.Resources> -->
|
||
|
<!-- <viewModels:ViewModel1 x:Key="TheViewModel"/> -->
|
||
|
<!-- <DataTemplate x:Key="TheDataTemplate" DataType="viewModels:ViewModel1"> -->
|
||
|
<!-- <Grid RowDefinitions="Auto, Auto, *, Auto"> -->
|
||
|
<!-- <StackPanel Orientation="Horizontal" -->
|
||
|
<!-- HorizontalAlignment="Left" -->
|
||
|
<!-- VerticalAlignment="Center"> -->
|
||
|
<!-- <TextBlock Text="Enter Text: " -->
|
||
|
<!-- VerticalAlignment="Center"/> -->
|
||
|
<!-- <TextBox x:Name="TheTextBox" -->
|
||
|
<!-- Text="{Binding Path=NewValue, Mode=TwoWay}" -->
|
||
|
<!-- MinWidth="150"/> -->
|
||
|
<!-- </StackPanel> -->
|
||
|
<!-- <StackPanel Orientation="Horizontal" -->
|
||
|
<!-- HorizontalAlignment="Left" -->
|
||
|
<!-- VerticalAlignment="Center" -->
|
||
|
<!-- Grid.Row="1" -->
|
||
|
<!-- Margin="0,10"> -->
|
||
|
<!-- <TextBlock Text="Saved Text: " -->
|
||
|
<!-- VerticalAlignment="Center"/> -->
|
||
|
<!-- <TextBlock x:Name="SavedTextBlock" -->
|
||
|
<!-- Text="{Binding Path=SavedValue}"/> -->
|
||
|
<!-- </StackPanel> -->
|
||
|
<!-- <StackPanel Orientation="Horizontal" -->
|
||
|
<!-- HorizontalAlignment="Right" -->
|
||
|
<!-- Grid.Row="3"> -->
|
||
|
<!-- <Button x:Name="CancelButton" -->
|
||
|
<!-- Content="Cancel" -->
|
||
|
<!-- Margin="5,0" -->
|
||
|
<!-- IsEnabled="{Binding Path=CanSave}" -->
|
||
|
<!-- Command="{Binding Path=Cancel}"/> -->
|
||
|
<!-- <Button x:Name="SaveButton" -->
|
||
|
<!-- Content="Save" -->
|
||
|
<!-- Margin="5,0" -->
|
||
|
<!-- IsEnabled="{Binding Path=CanSave}" -->
|
||
|
<!-- Command="{Binding Path=Save}"/> -->
|
||
|
<!-- </StackPanel> -->
|
||
|
<!-- </Grid> -->
|
||
|
<!-- </DataTemplate> -->
|
||
|
<!-- </Window.Resources> -->
|
||
|
<!-- <ContentPresenter Margin="20" -->
|
||
|
<!-- Content="{StaticResource TheViewModel}" -->
|
||
|
<!-- ContentTemplate="{StaticResource TheDataTemplate}"/> -->
|
||
|
</Window>
|