Dispenser/DispenserUI/Views/MainView.axaml.cs

22 lines
417 B
C#

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);
}
}