From 9232bd468eb19d156510964b70e7f5a78f80f4f9 Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Sat, 18 Feb 2017 07:47:45 +0100 Subject: [PATCH] Using "nameof" --- Fluent.Ribbon/Controls/ColorGallery.cs | 2 +- Fluent.Ribbon/Controls/GalleryItem.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Fluent.Ribbon/Controls/ColorGallery.cs b/Fluent.Ribbon/Controls/ColorGallery.cs index 1ef5fbece..98338f554 100644 --- a/Fluent.Ribbon/Controls/ColorGallery.cs +++ b/Fluent.Ribbon/Controls/ColorGallery.cs @@ -688,7 +688,7 @@ public event RoutedEventHandler SelectedColorChanged /// /// Identifies the SelectedColorChanged routed event. /// - public static readonly RoutedEvent SelectedColorChangedEvent = EventManager.RegisterRoutedEvent("SelectedColorChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(ColorGallery)); + public static readonly RoutedEvent SelectedColorChangedEvent = EventManager.RegisterRoutedEvent(nameof(SelectedColorChanged), RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(ColorGallery)); /// /// Raises SelectedColorChanged event diff --git a/Fluent.Ribbon/Controls/GalleryItem.cs b/Fluent.Ribbon/Controls/GalleryItem.cs index c3a5da4ee..5f9ff5cec 100644 --- a/Fluent.Ribbon/Controls/GalleryItem.cs +++ b/Fluent.Ribbon/Controls/GalleryItem.cs @@ -272,7 +272,7 @@ public event RoutedEventHandler Click /// /// Identifies the RibbonControl.Click routed event. /// - public static readonly RoutedEvent ClickEvent = EventManager.RegisterRoutedEvent("Click", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(GalleryItem)); + public static readonly RoutedEvent ClickEvent = EventManager.RegisterRoutedEvent(nameof(Click), RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(GalleryItem)); /// /// Raises click event