Windows-powershell / PowerShell-master /src /Microsoft.Management.UI.Internal /ManagementList /Common /AutomationTextBlock.cs
Download PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlock.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlock.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlock.cs
-
curl -L -o AutomationTextBlock.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/Common/AutomationTextBlock.cs
1.47 kB
| // 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 | |
| { | |
| /// <summary> | |
| /// Provides a <see cref="TextBlock"/> control that is always visible in the automation tree. | |
| /// </summary> | |
| [] | |
| [] | |
| public class AutomationTextBlock : TextBlock | |
| { | |
| /// <summary> | |
| /// Initializes a new instance of the <see cref="AutomationTextBlock" /> class. | |
| /// </summary> | |
| public AutomationTextBlock() | |
| { | |
| // This constructor intentionally left blank | |
| } | |
| /// <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); | |
| } | |
| } | |
| } | |