Dispenser/DispenserUI/Views/MainView.axaml.cs

22 lines
417 B
C#
Raw Normal View History

2024-08-16 07:20:09 +00:00
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using DispenserUI.ViewModels;
namespace DispenserUI.Views;
public partial class MainView : UserControl
{
public MainVM ViewModel { get; } = App.GetService<MainVM>();
public MainView()
{
DataContext = ViewModel;
InitializeComponent();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}