some more inotify properties added

(cherry picked from commit 26fa05d9b661dadc5ab0257d540ab838a07c43a6)
This commit is contained in:
Alekhya Reddy 2020-06-29 23:08:47 -07:00
parent 25015df212
commit 845a94c9b2
2 changed files with 51 additions and 3 deletions

View File

@ -41,9 +41,41 @@ namespace Wox.ViewModel
} }
} }
public ICommand ActivateContextButtonsHoverCommand { get; set; } private ICommand activateContextButtonsHoverCommand;
public ICommand ActivateContextButtonsHoverCommand {
get
{
return this.activateContextButtonsHoverCommand;
}
set
{
if (value != this.activateContextButtonsHoverCommand)
{
this.activateContextButtonsHoverCommand = value;
OnPropertyChanged();
}
}
}
private ICommand deactivateContextButtonsHoverCommand;
public ICommand DeactivateContextButtonsHoverCommand
{
get
{
return this.deactivateContextButtonsHoverCommand;
}
set
{
if (value != this.deactivateContextButtonsHoverCommand)
{
this.deactivateContextButtonsHoverCommand = value;
OnPropertyChanged();
}
}
}
public ICommand ActivateContextButtonsSelectionCommand { get; set; } public ICommand ActivateContextButtonsSelectionCommand { get; set; }
public ICommand DeactivateContextButtonsHoverCommand { get; set; }
public ICommand DeactivateContextButtonsSelectionCommand { get; set; } public ICommand DeactivateContextButtonsSelectionCommand { get; set; }

View File

@ -54,7 +54,23 @@ namespace Wox.ViewModel
return _settings.MaxResultsToShow * 75; return _settings.MaxResultsToShow * 75;
} }
} }
public int SelectedIndex { get; set; }
private int selectedIndex;
public int SelectedIndex {
get
{
return this.selectedIndex;
}
set
{
if (value != this.selectedIndex)
{
this.selectedIndex = value;
OnPropertyChanged();
}
}
}
private ResultViewModel _selectedItem; private ResultViewModel _selectedItem;
public ResultViewModel SelectedItem public ResultViewModel SelectedItem