mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 21:44:12 +08:00
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Avalonia.Controls;
|
|
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);
|
|
}
|
|
|
|
private void OnLoaded(object? sender, RoutedEventArgs e)
|
|
{
|
|
// this.GetParent<MainView>()!.WebWindow.ParentContent = this;
|
|
this.GetParent<MainView>()!.WebWindow.SetAddress(1);
|
|
}
|
|
//
|
|
// private void OnUnloaded(object? sender, RoutedEventArgs e)
|
|
// {
|
|
// this.GetParent<MainView>()!.WebWindow.Hide();
|
|
// }
|
|
//
|
|
// private void OnSizeChanged(object? sender, SizeChangedEventArgs e)
|
|
// {
|
|
// if (!this.GetParent<MainView>()!.WebWindow.IsVisible) return;
|
|
// this.GetParent<MainView>()!.WebWindow.InitUI();
|
|
// }
|
|
} |