Play an animation when the content of the badge is changed, and add the related demo.

This commit is contained in:
DingpingZhang committed 2019-04-04 21:05:15 +08:00
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++);
}
}
}