Windows-powershell / PowerShell-master /src /Microsoft.Management.UI.Internal /ManagementList /CommonControls /UIElementAdorner.Generated.cs
Download PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/UIElementAdorner.Generated.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/UIElementAdorner.Generated.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/UIElementAdorner.Generated.cs
-
curl -L -o UIElementAdorner.Generated.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.Management.UI.Internal/ManagementList/CommonControls/UIElementAdorner.Generated.cs
2.6 kB
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System; | |
| using System.ComponentModel; | |
| using System.Windows; | |
| namespace Microsoft.Management.UI.Internal | |
| { | |
| /// <summary> | |
| /// An Adorner which displays a given UIElement. | |
| /// </summary> | |
| [] | |
| partial class UIElementAdorner | |
| { | |
| // | |
| // Child dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the Child dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty ChildProperty = DependencyProperty.Register( "Child", typeof(UIElement), typeof(UIElementAdorner), new FrameworkPropertyMetadata( null, FrameworkPropertyMetadataOptions. AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure , ChildProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets the child element. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public UIElement Child | |
| { | |
| get | |
| { | |
| return (UIElement) GetValue(ChildProperty); | |
| } | |
| set | |
| { | |
| SetValue(ChildProperty,value); | |
| } | |
| } | |
| static private void ChildProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| UIElementAdorner obj = (UIElementAdorner) o; | |
| obj.OnChildChanged( new PropertyChangedEventArgs<UIElement>((UIElement)e.OldValue, (UIElement)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when Child property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<UIElement>> ChildChanged; | |
| /// <summary> | |
| /// Called when Child property changes. | |
| /// </summary> | |
| private void RaiseChildChanged(PropertyChangedEventArgs<UIElement> e) | |
| { | |
| var eh = this.ChildChanged; | |
| if (eh != null) | |
| { | |
| eh(this,e); | |
| } | |
| } | |
| /// <summary> | |
| /// Called when Child property changes. | |
| /// </summary> | |
| protected virtual void OnChildChanged(PropertyChangedEventArgs<UIElement> e) | |
| { | |
| OnChildChangedImplementation(e); | |
| RaiseChildChanged(e); | |
| } | |
| partial void OnChildChangedImplementation(PropertyChangedEventArgs<UIElement> e); | |
| } | |
| } | |