detect/detect.gui/VWS/LoginControl.axaml.cs

23 lines
626 B
C#
Raw Normal View History

2024-11-26 11:24:25 +08:00
using Avalonia.Controls;
using Avalonia.Media;
using detect.gui.VWMS;
using Splat;
namespace detect.gui.VWS;
public partial class LoginControl : UserControl
{
public LoginControl()
{
InitializeComponent();
DataContext = Locator.Current.GetService<LoginControlModel>();
}
// public override void Render(DrawingContext context)
// {
// base.Render(context);
// // if (DataContext != null) return;
// var ddd = TopLevel.GetTopLevel(this);
// Locator.Current.GetService<LoginControlModel>()!.TopWindow = TopLevel.GetTopLevel(this) as MainWindow;
// }
}