Delete Fody and PropertyChanged.Fody (#9120)

This commit is contained in:
Mykhailo Pylyp
2021-01-20 11:23:56 +02:00
committed by GitHub
parent d2a1ac9c3f
commit 433e2e57ed
11 changed files with 163 additions and 184 deletions

View File

@@ -52,7 +52,20 @@ namespace PowerLauncher.ViewModel
}
}
public int SelectedIndex { get; set; }
private int _selectedIndex;
public int SelectedIndex
{
get => _selectedIndex;
set
{
if (_selectedIndex != value)
{
_selectedIndex = value;
OnPropertyChanged(nameof(SelectedIndex));
}
}
}
private ResultViewModel _selectedItem;
@@ -84,7 +97,20 @@ namespace PowerLauncher.ViewModel
public Thickness Margin { get; set; }
public Visibility Visibility { get; set; } = Visibility.Hidden;
private Visibility _visibility = Visibility.Hidden;
public Visibility Visibility
{
get => _visibility;
set
{
if (_visibility != value)
{
_visibility = value;
OnPropertyChanged(nameof(Visibility));
}
}
}
public ResultCollection Results { get; }