delete lazy code in viewmodels
This commit is contained in:
1 parent
066cedeb73
commit
700f54ab2b
23 files changed
+141
-214
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using GalaSoft.MvvmLight.Command;
|
||||
using GalaSoft.MvvmLight.Command;
|
||||
using HandyControl.Controls;
|
||||
using HandyControlDemo.UserControl;
|
||||
|
||||
@@ -7,7 +6,6 @@ namespace HandyControlDemo.ViewModel
|
||||
{
|
||||
public class SpriteDemoViewModel
|
||||
{
|
||||
public RelayCommand OpenCmd => new Lazy<RelayCommand>(() =>
|
||||
new RelayCommand(() => Sprite.Show(new AppSprite()))).Value;
|
||||
public RelayCommand OpenCmd => new(() => Sprite.Show(new AppSprite()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user