mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 13:34:13 +08:00
23 lines
626 B
C#
23 lines
626 B
C#
![]() |
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;
|
|||
|
// }
|
|||
|
}
|