Skip to content

Commit

Permalink
Adding automation peer for TextBox #647
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Nov 25, 2018
1 parent b392c3a commit c11b2ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Fluent.Ribbon/Controls/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <summary>
Expand Down Expand Up @@ -248,5 +250,11 @@ void ILogicalChildSupport.RemoveLogicalChild(object child)
{
this.RemoveLogicalChild(child);
}

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

0 comments on commit c11b2ad

Please sign in to comment.