mirror of
https://github.com/amwx/FluentAvalonia.git
synced 2026-10-26 19:00:56 +08:00
18 lines
539 B
C#
18 lines
539 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json;
|
|
|
|
namespace FluentAvaloniaSamples.ViewModels;
|
|
|
|
public class NewControlsPageViewModel : ViewModelBase
|
|
{
|
|
public NewControlsPageViewModel()
|
|
{
|
|
var controls = GetAssemblyResource("avares://FluentAvaloniaSamples/Assets/FAControlsGroups.json");
|
|
ControlGroups = JsonSerializer.Deserialize<List<FAControlsGroupItem>>(controls);
|
|
}
|
|
|
|
public string PageHeader => "New Controls in FluentAvalonia";
|
|
|
|
public List<FAControlsGroupItem> ControlGroups { get; }
|
|
}
|