mirror of
https://github.com/amwx/FluentAvalonia.git
synced 2026-10-28 20:11:51 +08:00
21 lines
469 B
C#
21 lines
469 B
C#
namespace FluentAvaloniaSamples.ViewModels;
|
|
|
|
public class InfoBadgePageViewModel : ViewModelBase
|
|
{
|
|
public bool IsInfoBadgeEnabled
|
|
{
|
|
get => _isEnabled;
|
|
set
|
|
{
|
|
if (RaiseAndSetIfChanged(ref _isEnabled, value))
|
|
{
|
|
RaisePropertyChanged(nameof(InfoBadgeOpacity));
|
|
}
|
|
}
|
|
}
|
|
|
|
public double InfoBadgeOpacity => IsInfoBadgeEnabled ? 1d : 0d;
|
|
|
|
private bool _isEnabled = true;
|
|
}
|