mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-01-12 15:26:28 +01:00
updating details too
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
public class Action : BaseObservable, ICommand
|
||||
{
|
||||
private string _name = "";
|
||||
private IconDataType _icon = new("");
|
||||
private string _name = string.Empty;
|
||||
private IconDataType _icon = new(string.Empty);
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@@ -2,13 +2,48 @@
|
||||
|
||||
public class Details : BaseObservable, IDetails
|
||||
{
|
||||
protected IconDataType _HeroImage;
|
||||
protected string _Title;
|
||||
protected string _Body;
|
||||
protected IDetailsElement[] _Metadata = [];
|
||||
private IconDataType _heroImage = new(string.Empty);
|
||||
private string _title = string.Empty;
|
||||
private string _body = string.Empty;
|
||||
private IDetailsElement[] _metadata = [];
|
||||
|
||||
public IconDataType HeroImage { get => _HeroImage; set { _HeroImage = value; OnPropertyChanged(nameof(HeroImage)); } }
|
||||
public string Title { get => _Title; set { _Title = value; OnPropertyChanged(nameof(Title)); } }
|
||||
public string Body { get => _Body; set { _Body = value; OnPropertyChanged(nameof(Body)); } }
|
||||
public IDetailsElement[] Metadata { get => _Metadata; set { _Metadata = value; OnPropertyChanged(nameof(Metadata)); } }
|
||||
public IconDataType HeroImage
|
||||
{
|
||||
get => _heroImage;
|
||||
set
|
||||
{
|
||||
_heroImage = value;
|
||||
OnPropertyChanged(nameof(HeroImage));
|
||||
}
|
||||
}
|
||||
|
||||
public string Title
|
||||
{
|
||||
get => _title;
|
||||
set
|
||||
{
|
||||
_title = value;
|
||||
OnPropertyChanged(nameof(Title));
|
||||
}
|
||||
}
|
||||
|
||||
public string Body
|
||||
{
|
||||
get => _body;
|
||||
set
|
||||
{
|
||||
_body = value;
|
||||
OnPropertyChanged(nameof(Body));
|
||||
}
|
||||
}
|
||||
|
||||
public IDetailsElement[] Metadata
|
||||
{
|
||||
get => _metadata;
|
||||
set
|
||||
{
|
||||
_metadata = value;
|
||||
OnPropertyChanged(nameof(Metadata));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user