From c11b2ad2cc087d8b13d380c4dbe30c296381b457 Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Sun, 25 Nov 2018 14:39:40 +0100 Subject: [PATCH] Adding automation peer for TextBox #647 --- Fluent.Ribbon/Controls/TextBox.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Fluent.Ribbon/Controls/TextBox.cs b/Fluent.Ribbon/Controls/TextBox.cs index 1d9c10b77..169c71030 100644 --- a/Fluent.Ribbon/Controls/TextBox.cs +++ b/Fluent.Ribbon/Controls/TextBox.cs @@ -2,8 +2,10 @@ namespace Fluent { using System.Windows; + using System.Windows.Automation.Peers; using System.Windows.Data; using System.Windows.Input; + using Fluent.Automation.Peers; using Fluent.Internal.KnownBoxes; /// @@ -248,5 +250,11 @@ void ILogicalChildSupport.RemoveLogicalChild(object child) { this.RemoveLogicalChild(child); } + + /// + protected override AutomationPeer OnCreateAutomationPeer() + { + return new Fluent.Automation.Peers.TextBoxAutomationPeer(this); + } } } \ No newline at end of file