forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutomationTextBlock.cs
More file actions
50 lines (41 loc) · 1.71 KB
/
Copy pathAutomationTextBlock.cs
File metadata and controls
50 lines (41 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//-----------------------------------------------------------------------
// <copyright file="AutomationTextBlock.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.Management.UI.Internal
{
#region Using Directives
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
#endregion
/// <summary>
/// Provides a <see cref="TextBlock"/> control that is always visible in the automation tree.
/// </summary>
[SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
[Description("Provides a System.Windows.Controls.TextBlock control that is always visible in the automation tree.")]
public class AutomationTextBlock : TextBlock
{
#region Structors
/// <summary>
/// Initializes a new instance of the <see cref="AutomationTextBlock" /> class.
/// </summary>
public AutomationTextBlock()
{
// This constructor intentionally left blank
}
#endregion
#region Overides
/// <summary>
/// Returns the <see cref="System.Windows.Automation.Peers.AutomationPeer"/> implementations for this control.
/// </summary>
/// <returns>The <see cref="System.Windows.Automation.Peers.AutomationPeer"/> implementations for this control.</returns>
protected override AutomationPeer OnCreateAutomationPeer()
{
return new AutomationTextBlockAutomationPeer(this);
}
#endregion
}
}