Skip to content

Commit

Permalink
Fixed Negative Button for converters inconsistent with visibility (mi…
Browse files Browse the repository at this point in the history
…crosoft#1410)

When the unit converter's category is changed, the corresponding property setter for the CurrentCategory variable mistakenly calls OnPropertyChanged("CurrentCategory") instead of RaisePropertyChanged("CurrentCategory"). This results in a failure to notify XAML that the CurrentCategory variable has changed, resulting in the corresponding UI to not be updated accordingly.
  • Loading branch information
greedyAI authored Oct 27, 2020
1 parent 903b231 commit 8cdc177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalcViewModel/UnitConverterViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace CalculatorApp
auto currentCategory = value->GetModelCategory();
IsCurrencyCurrentCategory = currentCategory.id == CalculatorApp::Common::NavCategory::Serialize(CalculatorApp::Common::ViewMode::Currency);
}
OnPropertyChanged("CurrentCategory");
RaisePropertyChanged("CurrentCategory");
}
}

Expand Down

0 comments on commit 8cdc177

Please sign in to comment.