增加图标排序
This commit is contained in:
@@ -73,7 +73,23 @@ namespace GeekDesk.ViewModel
|
||||
|
||||
private bool doubleOpen = false; //双击打开项目 默认关闭
|
||||
|
||||
private bool hoverMenu = false; //悬停切换菜单 默认关闭
|
||||
|
||||
#region GetSet
|
||||
|
||||
public bool HoverMenu
|
||||
{
|
||||
get
|
||||
{
|
||||
return hoverMenu;
|
||||
}
|
||||
set
|
||||
{
|
||||
hoverMenu = value;
|
||||
OnPropertyChanged("HoverMenu");
|
||||
}
|
||||
}
|
||||
|
||||
public bool DoubleOpen
|
||||
{
|
||||
get
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace GeekDesk.ViewModel
|
||||
private ObservableCollection<IconInfo> iconList = new ObservableCollection<IconInfo>();
|
||||
|
||||
[field: NonSerializedAttribute()]
|
||||
private string[] NO_WRITE_ARR = new string[] { "IsEdit" };
|
||||
private static string[] NO_WRITE_ARR = new string[] { "IsEdit" };
|
||||
|
||||
|
||||
public bool IsEdit
|
||||
@@ -159,7 +159,7 @@ namespace GeekDesk.ViewModel
|
||||
private void OnPropertyChanged(string propertyName)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
foreach (var field in NO_WRITE_ARR)
|
||||
foreach (string field in NO_WRITE_ARR)
|
||||
{
|
||||
if (field.Equals(propertyName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user