C# Класс Fluent.RibbonAttachedProperties

Attached Properties for the Fluent Ribbon library
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RibbonSizeDefinitionProperty System.Windows.DependencyProperty
RibbonSizeProperty System.Windows.DependencyProperty
TitleBarHeightProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
FindParentRibbonGroupBox ( DependencyObject o ) : RibbonGroupBox
OnRibbonSizeDefinitionPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnRibbonSizePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Описание методов

GetRibbonSize() публичный статический Метод

Gets SizeDefinition for element
public static GetRibbonSize ( DependencyObject element ) : RibbonControlSize
element System.Windows.DependencyObject
Результат RibbonControlSize

GetRibbonSizeDefinition() публичный статический Метод

Gets SizeDefinition for element
public static GetRibbonSizeDefinition ( DependencyObject element ) : string
element System.Windows.DependencyObject
Результат string

GetThreeRibbonSizeDefinition() публичный статический Метод

Gets value of the attached property SizeDefinition of the given element
public static GetThreeRibbonSizeDefinition ( DependencyObject element ) : RibbonControlSize[]
element System.Windows.DependencyObject The given element
Результат RibbonControlSize[]

GetTitleBarHeight() публичный статический Метод

public static GetTitleBarHeight ( UIElement element ) : double
element System.Windows.UIElement
Результат double

SetAppropriateSize() публичный статический Метод

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
Результат void

SetRibbonSize() публичный статический Метод

Sets SizeDefinition for element
public static SetRibbonSize ( DependencyObject element, RibbonControlSize value ) : void
element System.Windows.DependencyObject
value RibbonControlSize
Результат void

SetRibbonSizeDefinition() публичный статический Метод

Sets SizeDefinition for element
public static SetRibbonSizeDefinition ( DependencyObject element, string value ) : void
element System.Windows.DependencyObject
value string
Результат void

SetTitleBarHeight() публичный статический Метод

public static SetTitleBarHeight ( UIElement element, double value ) : void
element System.Windows.UIElement
value double
Результат void

Описание свойств

RibbonSizeDefinitionProperty публичное статическое свойство

Using a DependencyProperty as the backing store for SizeDefinition. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows RibbonSizeDefinitionProperty
Результат System.Windows.DependencyProperty

RibbonSizeProperty публичное статическое свойство

Using a DependencyProperty as the backing store for Size. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows RibbonSizeProperty
Результат System.Windows.DependencyProperty

TitleBarHeightProperty публичное статическое свойство

public static DependencyProperty,System.Windows TitleBarHeightProperty
Результат System.Windows.DependencyProperty