Dispenser/DispenserUI/Views/Common/SystemStatusView.axaml.cs

28 lines
636 B
C#
Raw Normal View History

2024-08-16 07:20:09 +00:00
using System;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using DispenserCommon.Scheduler;
using DispenserCommon.Utils;
using DispenserUI.ViewModels.Common;
namespace DispenserUI.Views.Common;
public partial class SystemStatusView : UserControl
{
public SystemStatusVM ViewModel { get; } = ServiceLocator.GetService<SystemStatusVM>();
public SystemStatusView()
{
DataContext = ViewModel;
InitializeComponent();
ViewModel.BindView(this);
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}