mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-07 21:51:08 -07:00
Fixed Negative Button for converters inconsistent with visibility (#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.
This commit is contained in:
parent
903b231b1f
commit
8cdc177658
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue