DependsOnAttribute
Introduction
Simple DependsOn Usage
class GameScreenViewModel : ViewModel
{
public int Score
{
get => Get<int>();
set => Set(value);
}
[DependsOn(nameof(Score))]
public string ScoreDisplay => $"Points: {Score:N0}";
}Multiple Properties Using DependsOn
Multiple DependsOn on a Single Property
Last updated
Was this helpful?