Remove redundant OnPropertyChagned

This commit is contained in:
bao-qian
2016-05-23 22:17:38 +01:00
parent 82d4b866c0
commit d15611fd44
3 changed files with 23 additions and 91 deletions

View File

@@ -13,9 +13,7 @@ namespace Wox.ViewModel
{
#region Private Fields
private int _selectedIndex;
public ResultCollection Results { get; }
private Thickness _margin;
private readonly object _addResultsLock = new object();
private readonly object _collectionLock = new object();
@@ -45,29 +43,10 @@ namespace Wox.ViewModel
public int MaxHeight => MaxResults * 50;
public int SelectedIndex
{
get { return _selectedIndex; }
set
{
_selectedIndex = value;
OnPropertyChanged();
}
}
public int SelectedIndex { get; set; }
public ResultViewModel SelectedItem { get; set; }
public Thickness Margin
{
get
{
return _margin;
}
set
{
_margin = value;
OnPropertyChanged();
}
}
public Thickness Margin { get; set; }
#endregion