コード例 #1
0
		/// <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)) ;
			}
		}
コード例 #2
0
		/// <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 ;
		}