mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-25 05:54:14 +08:00
28 lines
621 B
C#
28 lines
621 B
C#
using Avalonia.Interactivity;
|
|
using Avalonia.Markup.Xaml;
|
|
using Avalonia.ReactiveUI;
|
|
using detect.gui.Commons;
|
|
using detect.gui.ViewModels;
|
|
using ReactiveUI;
|
|
|
|
namespace detect.gui.Views;
|
|
|
|
public partial class DeviceView : ReactiveUserControl<DeviceViewModel>
|
|
{
|
|
public DeviceView()
|
|
{
|
|
InitializeComponent();
|
|
this.WhenActivated(d => { });
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
protected override void OnLoaded(RoutedEventArgs e)
|
|
{
|
|
base.OnLoaded(e);
|
|
this.GetParent<MainView>()!.WebWindow.SetAddress(2);
|
|
}
|
|
} |