mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-18 04:37:57 +01:00
32 lines
921 B
C#
32 lines
921 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 ProjectsEditor
|
|||
|
|
{
|
|||
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|