Windows-powershell / PowerShell-master /src /Microsoft.Management.UI.Internal /ManagementList /CommonControls /AutomationGroup.cs
Download PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/AutomationGroup.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 983 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/AutomationGroup.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/AutomationGroup.cs
-
curl -L -o AutomationGroup.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/AutomationGroup.cs
983 Bytes
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Windows.Automation.Peers; | |
| using System.Windows.Controls; | |
| namespace Microsoft.Management.UI.Internal | |
| { | |
| /// <summary> | |
| /// Represents a decorator that is always visible in the automation tree, indicating that its descendents belong to a logical group. | |
| /// </summary> | |
| [] | |
| public class AutomationGroup : ContentControl | |
| { | |
| /// <summary> | |
| /// Returns the <see cref="AutomationPeer"/> implementations for this control. | |
| /// </summary> | |
| /// <returns>The <see cref="AutomationPeer"/> implementations for this control.</returns> | |
| protected override AutomationPeer OnCreateAutomationPeer() | |
| { | |
| return new ExtendedFrameworkElementAutomationPeer(this, AutomationControlType.Group, true); | |
| } | |
| } | |
| } | |