C# Class Fluent.RibbonAttachedProperties

Attached Properties for the Fluent Ribbon library
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Свойство Type Description
RibbonSizeDefinitionProperty System.Windows.DependencyProperty
RibbonSizeProperty System.Windows.DependencyProperty
TitleBarHeightProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthode 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 méthode

Gets SizeDefinition for element
public static GetRibbonSize ( DependencyObject element ) : RibbonControlSize
element System.Windows.DependencyObject
Résultat RibbonControlSize

GetRibbonSizeDefinition() public static méthode

Gets SizeDefinition for element
public static GetRibbonSizeDefinition ( DependencyObject element ) : string
element System.Windows.DependencyObject
Résultat string

GetThreeRibbonSizeDefinition() public static méthode

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

GetTitleBarHeight() public static méthode

public static GetTitleBarHeight ( UIElement element ) : double
element System.Windows.UIElement
Résultat double

SetAppropriateSize() public static méthode

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
Résultat void

SetRibbonSize() public static méthode

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

SetRibbonSizeDefinition() public static méthode

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

SetTitleBarHeight() public static méthode

public static SetTitleBarHeight ( UIElement element, double value ) : void
element System.Windows.UIElement
value double
Résultat 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
Résultat 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
Résultat System.Windows.DependencyProperty

TitleBarHeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows TitleBarHeightProperty
Résultat System.Windows.DependencyProperty