forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutomationGroup.cs
More file actions
27 lines (25 loc) · 1.18 KB
/
Copy pathAutomationGroup.cs
File metadata and controls
27 lines (25 loc) · 1.18 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
//-----------------------------------------------------------------------
// <copyright file="AutomationGroup.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.Management.UI.Internal
{
using System.Windows.Automation.Peers;
using System.Windows.Controls;
/// <summary>
/// Represents a decorator that is always visible in the automation tree, indicating that its descendents belong to a logical group.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
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);
}
}
}