C# Class Fluent.RibbonAttachedProperties

Attached Properties for the Fluent Ribbon library
显示文件 Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
RibbonSizeDefinitionProperty System.Windows.DependencyProperty
RibbonSizeProperty System.Windows.DependencyProperty
TitleBarHeightProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetRibbonSize ( DependencyObject element ) : RibbonControlSize

Gets SizeDefinition for element

GetRibbonSizeDefinition ( DependencyObject element ) : string

Gets SizeDefinition for element

GetThreeRibbonSizeDefinition ( DependencyObject element ) : RibbonControlSize[]

Gets value of the attached property SizeDefinition of the given element

GetTitleBarHeight ( UIElement element ) : double
SetAppropriateSize ( DependencyObject element, RibbonGroupBoxState state ) : void

Sets appropriate size of the control according to the given group box state and control's size definition

SetRibbonSize ( DependencyObject element, RibbonControlSize value ) : void

Sets SizeDefinition for element

SetRibbonSizeDefinition ( DependencyObject element, string value ) : void

Sets SizeDefinition for element

SetTitleBarHeight ( UIElement element, double value ) : void

Private Methods

Method Description
FindParentRibbonGroupBox ( DependencyObject o ) : RibbonGroupBox
OnRibbonSizeDefinitionPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnRibbonSizePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

GetRibbonSize() public static method

Gets SizeDefinition for element
public static GetRibbonSize ( DependencyObject element ) : RibbonControlSize
element System.Windows.DependencyObject
return RibbonControlSize

GetRibbonSizeDefinition() public static method

Gets SizeDefinition for element
public static GetRibbonSizeDefinition ( DependencyObject element ) : string
element System.Windows.DependencyObject
return string

GetThreeRibbonSizeDefinition() public static method

Gets value of the attached property SizeDefinition of the given element
public static GetThreeRibbonSizeDefinition ( DependencyObject element ) : RibbonControlSize[]
element System.Windows.DependencyObject The given element
return RibbonControlSize[]

GetTitleBarHeight() public static method

public static GetTitleBarHeight ( UIElement element ) : double
element System.Windows.UIElement
return double

SetAppropriateSize() public static method

Sets appropriate size of the control according to the given group box state and control's size definition
public static SetAppropriateSize ( DependencyObject element, RibbonGroupBoxState state ) : void
element System.Windows.DependencyObject UI Element
state RibbonGroupBoxState Group box state
return void

SetRibbonSize() public static method

Sets SizeDefinition for element
public static SetRibbonSize ( DependencyObject element, RibbonControlSize value ) : void
element System.Windows.DependencyObject
value RibbonControlSize
return void

SetRibbonSizeDefinition() public static method

Sets SizeDefinition for element
public static SetRibbonSizeDefinition ( DependencyObject element, string value ) : void
element System.Windows.DependencyObject
value string
return void

SetTitleBarHeight() public static method

public static SetTitleBarHeight ( UIElement element, double value ) : void
element System.Windows.UIElement
value double
return void

Property Details

RibbonSizeDefinitionProperty public_oe static_oe property

Using a DependencyProperty as the backing store for SizeDefinition. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows RibbonSizeDefinitionProperty
return System.Windows.DependencyProperty

RibbonSizeProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Size. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows RibbonSizeProperty
return System.Windows.DependencyProperty

TitleBarHeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows TitleBarHeightProperty
return System.Windows.DependencyProperty