Play an animation when the content of the badge is changed, and add the related demo.
This commit is contained in:
1 parent
bf34643ff4
commit
2fd5d90432
6 files changed
+79
-7
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using System.Windows.Input;
|
||||
using GalaSoft.MvvmLight;
|
||||
using GalaSoft.MvvmLight.CommandWpf;
|
||||
|
||||
namespace HandyControlDemo.ViewModel.Controls
|
||||
{
|
||||
public class BadgeDemoCtlViewModel : ViewModelBase
|
||||
{
|
||||
private int _count;
|
||||
|
||||
public int Count
|
||||
{
|
||||
get => _count;
|
||||
set => Set(ref _count, value);
|
||||
}
|
||||
|
||||
public ICommand CountCommand { get; }
|
||||
|
||||
public BadgeDemoCtlViewModel()
|
||||
{
|
||||
Count = 1;
|
||||
CountCommand = new RelayCommand(() => Count++);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user