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.
48 lines
843 B
48 lines
843 B
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace ex_OutlineText;
|
|
|
|
public class SimpleVM : INotifyPropertyChanged
|
|
{
|
|
public string Text
|
|
{
|
|
get => text;
|
|
set
|
|
{
|
|
text = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
private string text = "Prout";
|
|
|
|
public float StrokeWidth
|
|
{
|
|
get => strokeWidth;
|
|
set
|
|
{
|
|
strokeWidth = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
private float strokeWidth;
|
|
|
|
public string FontFamily
|
|
{
|
|
get => font;
|
|
set
|
|
{
|
|
font = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
private string font = "Equestria";
|
|
|
|
public void OnPropertyChanged([CallerMemberName] string pptyName = "")
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(pptyName));
|
|
}
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
}
|