chore: use file-scoped namespace
This commit is contained in:
1 parent
99d2fafb72
commit
bbf1b7d4c6
748 files changed
+57929
-58678
No files matched your search
+17
-18
@@ -4,34 +4,33 @@ using HandyControl.Controls;
|
||||
using HandyControl.Data;
|
||||
using HandyControlDemo.UserControl;
|
||||
|
||||
namespace HandyControlDemo.ViewModel
|
||||
namespace HandyControlDemo.ViewModel;
|
||||
|
||||
public class NotificationDemoViewModel : ViewModelBase
|
||||
{
|
||||
public class NotificationDemoViewModel : ViewModelBase
|
||||
public RelayCommand OpenCmd => new(() => Notification.Show(new AppNotification(), ShowAnimation, StaysOpen));
|
||||
|
||||
private ShowAnimation _showAnimation;
|
||||
|
||||
public ShowAnimation ShowAnimation
|
||||
{
|
||||
public RelayCommand OpenCmd => new(() => Notification.Show(new AppNotification(), ShowAnimation, StaysOpen));
|
||||
|
||||
private ShowAnimation _showAnimation;
|
||||
|
||||
public ShowAnimation ShowAnimation
|
||||
{
|
||||
get => _showAnimation;
|
||||
get => _showAnimation;
|
||||
#if NET40
|
||||
set => Set(nameof(ShowAnimation) ,ref _showAnimation, value);
|
||||
set => Set(nameof(ShowAnimation) ,ref _showAnimation, value);
|
||||
#else
|
||||
set => Set(ref _showAnimation, value);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
private bool _staysOpen = true;
|
||||
private bool _staysOpen = true;
|
||||
|
||||
public bool StaysOpen
|
||||
{
|
||||
get => _staysOpen;
|
||||
public bool StaysOpen
|
||||
{
|
||||
get => _staysOpen;
|
||||
#if NET40
|
||||
set => Set(nameof(StaysOpen) ,ref _staysOpen, value);
|
||||
set => Set(nameof(StaysOpen) ,ref _staysOpen, value);
|
||||
#else
|
||||
set => Set(ref _staysOpen, value);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user