Dispenser/DispenserUI/Views/ContainerView.axaml.cs

22 lines
468 B
C#

using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using DispenserUI.ViewModels;
namespace DispenserUI.Views;
public partial class ContainerView : UserControl
{
public ContainerViewModel ViewModel { get; } = App.GetService<ContainerViewModel>();
public ContainerView()
{
DataContext = ViewModel;
InitializeComponent();
}
public void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}