mirror of
https://github.com/amwx/FluentAvalonia.git
synced 2026-10-28 11:46:53 +08:00
18 lines
546 B
C#
18 lines
546 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json;
|
|
|
|
namespace FluentAvaloniaSamples.ViewModels;
|
|
|
|
public class CoreControlsPageViewModel : ViewModelBase
|
|
{
|
|
public CoreControlsPageViewModel()
|
|
{
|
|
var coreControls = GetAssemblyResource("avares://FluentAvaloniaSamples/Assets/CoreControlsGroups.json");
|
|
CoreControlGroups = JsonSerializer.Deserialize<List<CoreControlsGroupItem>>(coreControls);
|
|
}
|
|
|
|
public string PageHeader => "Core Controls";
|
|
|
|
public List<CoreControlsGroupItem> CoreControlGroups { get; }
|
|
}
|