// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Windows.Automation.Peers; using System.Windows.Controls; namespace Microsoft.Management.UI.Internal { /// /// Provides a control that is always visible in the automation tree. /// [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 /// /// Initializes a new instance of the class. /// public AutomationTextBlock() { // This constructor intentionally left blank } #endregion #region Overides /// /// Returns the implementations for this control. /// /// The implementations for this control. protected override AutomationPeer OnCreateAutomationPeer() { return new AutomationTextBlockAutomationPeer(this); } #endregion } }