From 66dfa7738d4d091fab826df990ab3e6b6e97cbbd Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Mon, 3 Dec 2018 21:53:31 +0100 Subject: [PATCH] Using expression body --- Fluent.Ribbon/Controls/Button.cs | 3 +-- Fluent.Ribbon/Controls/ComboBox.cs | 5 +---- Fluent.Ribbon/Controls/RadioButton.cs | 5 +---- Fluent.Ribbon/Controls/TextBox.cs | 5 +---- Fluent.Ribbon/Controls/ToggleButton.cs | 5 +---- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/Fluent.Ribbon/Controls/Button.cs b/Fluent.Ribbon/Controls/Button.cs index bdfad71db..e6183f6fa 100644 --- a/Fluent.Ribbon/Controls/Button.cs +++ b/Fluent.Ribbon/Controls/Button.cs @@ -5,7 +5,6 @@ namespace Fluent using System.Windows.Automation.Peers; using System.Windows.Markup; using Fluent.Internal.KnownBoxes; - using ButtonAutomationPeer = Fluent.Automation.Peers.ButtonAutomationPeer; /// /// Represents button @@ -230,6 +229,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child) } /// - protected override AutomationPeer OnCreateAutomationPeer() => new ButtonAutomationPeer(this); + protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.ButtonAutomationPeer(this); } } \ No newline at end of file diff --git a/Fluent.Ribbon/Controls/ComboBox.cs b/Fluent.Ribbon/Controls/ComboBox.cs index e1b494ffd..b181ab1a6 100644 --- a/Fluent.Ribbon/Controls/ComboBox.cs +++ b/Fluent.Ribbon/Controls/ComboBox.cs @@ -849,9 +849,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child) } /// - protected override AutomationPeer OnCreateAutomationPeer() - { - return new Fluent.Automation.Peers.ComboBoxAutomationPeer(this); - } + protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.ComboBoxAutomationPeer(this); } } \ No newline at end of file diff --git a/Fluent.Ribbon/Controls/RadioButton.cs b/Fluent.Ribbon/Controls/RadioButton.cs index 4bf5bb118..c113b2a38 100644 --- a/Fluent.Ribbon/Controls/RadioButton.cs +++ b/Fluent.Ribbon/Controls/RadioButton.cs @@ -199,9 +199,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child) } /// - protected override AutomationPeer OnCreateAutomationPeer() - { - return new Fluent.Automation.Peers.RadioButtonAutomationPeer(this); - } + protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.RadioButtonAutomationPeer(this); } } \ No newline at end of file diff --git a/Fluent.Ribbon/Controls/TextBox.cs b/Fluent.Ribbon/Controls/TextBox.cs index 65c03317b..fa13f8b66 100644 --- a/Fluent.Ribbon/Controls/TextBox.cs +++ b/Fluent.Ribbon/Controls/TextBox.cs @@ -284,9 +284,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child) } /// - protected override AutomationPeer OnCreateAutomationPeer() - { - return new Fluent.Automation.Peers.TextBoxAutomationPeer(this); - } + protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.TextBoxAutomationPeer(this); } } \ No newline at end of file diff --git a/Fluent.Ribbon/Controls/ToggleButton.cs b/Fluent.Ribbon/Controls/ToggleButton.cs index 892e504f5..61568d56e 100644 --- a/Fluent.Ribbon/Controls/ToggleButton.cs +++ b/Fluent.Ribbon/Controls/ToggleButton.cs @@ -282,9 +282,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child) } /// - protected override AutomationPeer OnCreateAutomationPeer() - { - return new Fluent.Automation.Peers.ToggleButtonAutomationPeer(this); - } + protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.ToggleButtonAutomationPeer(this); } } \ No newline at end of file