/// <summary> /// Property change handler /// </summary> /// <param name="property"></param> protected virtual void OnPropertyChange(PSItmLayoutPanelProperty property) { switch(property) { case PSItmLayoutPanelProperty.BackColorProperty: case PSItmLayoutPanelProperty.PanelGradientProperty: case PSItmLayoutPanelProperty.BackgroundStyleProperty: BackgroundBrush = null ; break ; case PSItmLayoutPanelProperty.BorderMarginProperty: case PSItmLayoutPanelProperty.ItemSpacingProperty: case PSItmLayoutPanelProperty.AutoSizeProperty: case PSItmLayoutPanelProperty.ItemLayoutProperty: break ; } if (propertyChangeListeners != null) { propertyChangeListeners(this,new PropertyChangeEventArgs(property)) ; } }
/// <summary> /// Create a new <c>PSPanelPropertyChangeArgs</c> with the specified /// property enumeration value /// </summary> /// <param name="property"></param> public PropertyChangeEventArgs(PSItmLayoutPanelProperty property) { this.property = property ; }