/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Microsoft.Management.UI.Internal/ManagementList/Common/PopupControlButton.Generated.cs
83 строки
3 KB
Steve Lee
Update copyright notice to latest guidance (#12190)
24 мар 2020, 21:08
Не верифицирован
24 мар 2020, 21:08
b7cb335
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #region StyleCop Suppression - generated code using System; using System.ComponentModel; using System.Windows; namespace Microsoft.Management.UI.Internal { /// <summary> /// A toggle button which controls is a popup is open or not. /// </summary> [Localizability(LocalizationCategory.None)] partial class PopupControlButton { // // IsPopupOpen dependency property // /// <summary> /// Identifies the IsPopupOpen dependency property. /// </summary> public static readonly DependencyProperty IsPopupOpenProperty = DependencyProperty.Register( "IsPopupOpen", typeof(bool), typeof(PopupControlButton), new FrameworkPropertyMetadata( BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, IsPopupOpenProperty_PropertyChanged) ); /// <summary> /// Gets or sets a value indicating whether the popup is open or not. /// </summary> /// <remarks> /// The Popup.IsOpen property should be two-way bound to this property. /// </remarks> [Bindable(true)] [Category("Common Properties")] [Description("Gets or sets a value indicating whether the popup is open or not.")] [Localizability(LocalizationCategory.None)] public bool IsPopupOpen { get { return (bool) GetValue(IsPopupOpenProperty); } set { SetValue(IsPopupOpenProperty,BooleanBoxes.Box(value)); } } static private void IsPopupOpenProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { PopupControlButton obj = (PopupControlButton) o; obj.OnIsPopupOpenChanged( new PropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue) ); } /// <summary> /// Occurs when IsPopupOpen property changes. /// </summary> public event EventHandler<PropertyChangedEventArgs<bool>> IsPopupOpenChanged; /// <summary> /// Called when IsPopupOpen property changes. /// </summary> protected virtual void OnIsPopupOpenChanged(PropertyChangedEventArgs<bool> e) { OnIsPopupOpenChangedImplementation(e); RaisePropertyChangedEvent(IsPopupOpenChanged, e); } partial void OnIsPopupOpenChangedImplementation(PropertyChangedEventArgs<bool> e); /// <summary> /// Called when a property changes. /// </summary> private void RaisePropertyChangedEvent<T>(EventHandler<PropertyChangedEventArgs<T>> eh, PropertyChangedEventArgs<T> e) { if (eh != null) { eh(this,e); } } } } #endregion