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:
Wei (Waley) Zhang 2020-10-27 15:56:21 -07:00 committed by GitHub
parent 903b231b1f
commit 8cdc177658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}
}