mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
32 lines
923 B
C#
32 lines
923 B
C#
|
|
// Copyright (c) Microsoft Corporation
|
|||
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|||
|
|
// See the LICENSE file in the project root for more information.
|
|||
|
|
|
|||
|
|
using System.Windows;
|
|||
|
|
using System.Windows.Automation.Peers;
|
|||
|
|
using System.Windows.Controls;
|
|||
|
|
|
|||
|
|
namespace WorkspacesEditor
|
|||
|
|
{
|
|||
|
|
public class HeadingTextBlock : TextBlock
|
|||
|
|
{
|
|||
|
|
protected override AutomationPeer OnCreateAutomationPeer()
|
|||
|
|
{
|
|||
|
|
return new HeadingTextBlockAutomationPeer(this);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
internal sealed class HeadingTextBlockAutomationPeer : TextBlockAutomationPeer
|
|||
|
|
{
|
|||
|
|
public HeadingTextBlockAutomationPeer(HeadingTextBlock owner)
|
|||
|
|
: base(owner)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override AutomationControlType GetAutomationControlTypeCore()
|
|||
|
|
{
|
|||
|
|
return AutomationControlType.Header;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|