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(); } // public override void Render(DrawingContext context) // { // base.Render(context); // // if (DataContext != null) return; // var ddd = TopLevel.GetTopLevel(this); // Locator.Current.GetService()!.TopWindow = TopLevel.GetTopLevel(this) as MainWindow; // } }