diff --git a/demo/Ursa.Demo/App.axaml.cs b/demo/Ursa.Demo/App.axaml.cs index 169a116..1b2ba8a 100644 --- a/demo/Ursa.Demo/App.axaml.cs +++ b/demo/Ursa.Demo/App.axaml.cs @@ -24,7 +24,7 @@ public partial class App : Application } else if (ApplicationLifetime is ISingleViewApplicationLifetime singleView) { - singleView.MainView = new MainView() + singleView.MainView = new SingleView() { DataContext = new MainViewViewModel(), }; diff --git a/demo/Ursa.Demo/Views/SingleView.axaml b/demo/Ursa.Demo/Views/SingleView.axaml new file mode 100644 index 0000000..2065973 --- /dev/null +++ b/demo/Ursa.Demo/Views/SingleView.axaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/demo/Ursa.Demo/Views/SingleView.axaml.cs b/demo/Ursa.Demo/Views/SingleView.axaml.cs new file mode 100644 index 0000000..7f65e88 --- /dev/null +++ b/demo/Ursa.Demo/Views/SingleView.axaml.cs @@ -0,0 +1,13 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace Ursa.Demo.Views; + +public partial class SingleView : UserControl +{ + public SingleView() + { + InitializeComponent(); + } +} \ No newline at end of file