feat: fix various badge layout issues.
This commit is contained in:
@@ -1,6 +1,28 @@
|
||||
using System;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
namespace Ursa.Demo.ViewModels;
|
||||
|
||||
public class BadgeDemoViewModel: ViewModelBase
|
||||
public partial class BadgeDemoViewModel: ViewModelBase
|
||||
{
|
||||
|
||||
[ObservableProperty] private string? _text = null;
|
||||
|
||||
public BadgeDemoViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
public void ChangeText()
|
||||
{
|
||||
if (Text == null)
|
||||
{
|
||||
Text = DateTime.Now.ToShortDateString();
|
||||
}
|
||||
else
|
||||
{
|
||||
Text = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user