Skip to content

Commit

Permalink
Using expression body
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Dec 3, 2018
1 parent b4fd7d7 commit 66dfa77
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
3 changes: 1 addition & 2 deletions Fluent.Ribbon/Controls/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <summary>
/// Represents button
Expand Down Expand Up @@ -230,6 +229,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child)
}

/// <inheritdoc />
protected override AutomationPeer OnCreateAutomationPeer() => new ButtonAutomationPeer(this);
protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.ButtonAutomationPeer(this);
}
}
5 changes: 1 addition & 4 deletions Fluent.Ribbon/Controls/ComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child)
}

/// <inheritdoc />
protected override AutomationPeer OnCreateAutomationPeer()
{
return new Fluent.Automation.Peers.ComboBoxAutomationPeer(this);
}
protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.ComboBoxAutomationPeer(this);
}
}
5 changes: 1 addition & 4 deletions Fluent.Ribbon/Controls/RadioButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child)
}

/// <inheritdoc />
protected override AutomationPeer OnCreateAutomationPeer()
{
return new Fluent.Automation.Peers.RadioButtonAutomationPeer(this);
}
protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.RadioButtonAutomationPeer(this);
}
}
5 changes: 1 addition & 4 deletions Fluent.Ribbon/Controls/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child)
}

/// <inheritdoc />
protected override AutomationPeer OnCreateAutomationPeer()
{
return new Fluent.Automation.Peers.TextBoxAutomationPeer(this);
}
protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.TextBoxAutomationPeer(this);
}
}
5 changes: 1 addition & 4 deletions Fluent.Ribbon/Controls/ToggleButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ void ILogicalChildSupport.RemoveLogicalChild(object child)
}

/// <inheritdoc />
protected override AutomationPeer OnCreateAutomationPeer()
{
return new Fluent.Automation.Peers.ToggleButtonAutomationPeer(this);
}
protected override AutomationPeer OnCreateAutomationPeer() => new Fluent.Automation.Peers.ToggleButtonAutomationPeer(this);
}
}

0 comments on commit 66dfa77

Please sign in to comment.