mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 22:03:11 -07:00
Use nameof operator instead of the "Closing" name directly
This commit is contained in:
parent
be5c839bcf
commit
c9b13ee57e
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ namespace CalculatorApp
|
|||
string memoryPaneName = AppResourceProvider.GetInstance().GetResourceString("MemoryPane");
|
||||
MemoryFlyout.FlyoutPresenterStyle.Setters.Add(new Setter(AutomationProperties.NameProperty, memoryPaneName));
|
||||
|
||||
if (Windows.Foundation.Metadata.ApiInformation.IsEventPresent("Windows.UI.Xaml.Controls.Primitives.FlyoutBase", "Closing"))
|
||||
if (Windows.Foundation.Metadata.ApiInformation.IsEventPresent("Windows.UI.Xaml.Controls.Primitives.FlyoutBase", nameof(FlyoutBase.Closing)))
|
||||
{
|
||||
HistoryFlyout.Closing += HistoryFlyout_Closing;
|
||||
MemoryFlyout.Closing += OnMemoryFlyoutClosing;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue