You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
699 B
28 lines
699 B
using ReactiveUI.Avalonia;
|
|
using Avalonia.Markup.Xaml;
|
|
using AuroraDesk.Presentation.ViewModels.Pages;
|
|
using ReactiveUI;
|
|
using System;
|
|
using System.Reactive.Disposables;
|
|
|
|
namespace AuroraDesk.Presentation.Views.Pages;
|
|
|
|
public partial class LiveCharts2PageView : ReactiveUserControl<LiveCharts2PageViewModel>
|
|
{
|
|
public LiveCharts2PageView()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.WhenActivated(disposables =>
|
|
{
|
|
// 数据绑定通过 XAML 完成,这里不需要额外处理
|
|
// IsPieChart 属性会自动控制图表的显示/隐藏
|
|
});
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
}
|
|
|
|
|