diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-02-01 22:13:46 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-02-01 22:13:46 -0500 |
| commit | c7428fab1c38d29bcc50ee263678504e34d01318 (patch) | |
| tree | bf5c4a63afc1513d361c6b18fd6c6cf3f0aaaa27 /Erable/Views | |
| parent | d5f8e3f543e138b43fca95ed058345b9ab446d2f (diff) | |
| download | erable-godot-c7428fab1c38d29bcc50ee263678504e34d01318.tar.gz erable-godot-c7428fab1c38d29bcc50ee263678504e34d01318.tar.bz2 erable-godot-c7428fab1c38d29bcc50ee263678504e34d01318.zip | |
Moved project files
Diffstat (limited to 'Erable/Views')
| -rw-r--r-- | Erable/Views/MainWindow.axaml | 20 | ||||
| -rw-r--r-- | Erable/Views/MainWindow.axaml.cs | 22 |
2 files changed, 42 insertions, 0 deletions
diff --git a/Erable/Views/MainWindow.axaml b/Erable/Views/MainWindow.axaml new file mode 100644 index 0000000..6bb4cd1 --- /dev/null +++ b/Erable/Views/MainWindow.axaml @@ -0,0 +1,20 @@ +<Window xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:vm="using:Erable.ViewModels"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ x:Class="Erable.Views.MainWindow"
+ Icon="/Assets/avalonia-logo.ico"
+ Title="Erable">
+
+ <Design.DataContext>
+ <vm:MainWindowViewModel/>
+ </Design.DataContext>
+ <StackPanel>
+ <TextBlock Text="{Binding Greeting}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+ <Button Name="PlayButton" Width="80" Command="{Binding PlayFunction}" >Play</Button>
+ <Button Name="StopButton" Width="80" >Stop</Button>
+ <Button Name="BrowseButton" Width="80" Command="{Binding BrowseFunction }" >Browse</Button>
+ </StackPanel>
+</Window>
diff --git a/Erable/Views/MainWindow.axaml.cs b/Erable/Views/MainWindow.axaml.cs new file mode 100644 index 0000000..814bc0f --- /dev/null +++ b/Erable/Views/MainWindow.axaml.cs @@ -0,0 +1,22 @@ +using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace Erable.Views
+{
+ public class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+#if DEBUG
+ this.AttachDevTools();
+#endif
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}
\ No newline at end of file |
