Windows-powershell / PowerShell-master /src /Microsoft.Management.UI.Internal /ManagementList /Common /AutomationTextBlockAutomationPeer.cs
Download PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlockAutomationPeer.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlockAutomationPeer.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlockAutomationPeer.cs
-
curl -L -o AutomationTextBlockAutomationPeer.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlockAutomationPeer.cs
1.7 kB
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.Windows.Automation.Peers; | |
| using System.Windows.Controls; | |
| namespace Microsoft.Management.UI.Internal | |
| { | |
| /// <summary> | |
| /// Provides an automation peer for AutomationTextBlock. | |
| /// </summary> | |
| [] | |
| internal class AutomationTextBlockAutomationPeer : TextBlockAutomationPeer | |
| { | |
| /// <summary> | |
| /// Initializes a new instance of the <see cref="Microsoft.Management.UI.Internal.AutomationTextBlockAutomationPeer" /> class. | |
| /// </summary> | |
| /// <param name="owner">The owner of the automation peer.</param> | |
| public AutomationTextBlockAutomationPeer(TextBlock owner) | |
| : base(owner) | |
| { | |
| // This constructor intentionally left blank | |
| } | |
| /// <summary> | |
| /// Gets a value that indicates whether the element is understood by the user as interactive or as contributing to the logical structure of the control in the GUI. Called by IsControlElement(). | |
| /// </summary> | |
| /// <returns>This method always returns true.</returns> | |
| protected override bool IsControlElementCore() | |
| { | |
| return true; | |
| } | |
| /// <summary> | |
| /// Gets the class name. | |
| /// </summary> | |
| /// <returns>The class name.</returns> | |
| protected override string GetClassNameCore() | |
| { | |
| return this.Owner.GetType().Name; | |
| } | |
| } | |
| } | |