mirror of
https://gitee.com/chinware/atomui.git
synced 2024-12-04 04:48:08 +08:00
22 lines
566 B
C#
22 lines
566 B
C#
using AtomUI.Demo.Desktop.ViewModels;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Controls.Primitives;
|
|
using Avalonia.Threading;
|
|
|
|
namespace AtomUI.Demo.Desktop.ShowCase;
|
|
|
|
public partial class IconShowCase : UserControl
|
|
{
|
|
public IconShowCase()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override async void OnApplyTemplate(TemplateAppliedEventArgs e)
|
|
{
|
|
base.OnApplyTemplate(e);
|
|
var vm = new PaletteDemoViewModel();
|
|
await Dispatcher.UIThread.InvokeAsync(() => { vm.InitializeResources(); });
|
|
DataContext = vm;
|
|
}
|
|
} |