C# Класс Fluent.RibbonControl

Represent base class for Fluent controls
Наследование: System.Windows.Controls.Control, ICommandSource, IQuickAccessItemProvider, IRibbonControl
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
CanAddToQuickAccessToolBarProperty System.Windows.DependencyProperty
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
CommandTargetProperty System.Windows.DependencyProperty
HeaderProperty System.Windows.DependencyProperty
IconProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
Bind void
CoerceIsEnabled object
OnCommandCanExecuteChanged void
OnCommandChanged void
OnIconChanged void
RibbonControl System
UpdateCanExecute void

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

Метод Описание
BindQuickAccessItem ( FrameworkElement source, FrameworkElement element ) : void

Binds default properties of control to quick access element

CreateQuickAccessItem ( ) : FrameworkElement

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.

GetControlMonitor ( FrameworkElement control ) : Rect

Returns monitor in witch control is placed

GetControlWorkArea ( FrameworkElement control ) : Rect

Returns screen workarea in witch control is placed

OnCanAddToQuickAccessToolbarChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Occurs then CanAddToQuickAccessToolBar property changed

OnKeyTipBack ( ) : void

Handles back navigation with KeyTips

OnKeyTipPressed ( ) : void

Handles key tip pressed

Защищенные методы

Метод Описание
CanExecuteCommand ( ) : bool

Determines whether the Command can be executed

ExecuteCommand ( ) : void

Execute command

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

Метод Описание
Bind ( object source, FrameworkElement target, string path, DependencyProperty property, BindingMode mode ) : void
CoerceIsEnabled ( DependencyObject d, object basevalue ) : object

Coerces IsEnabled

OnCommandCanExecuteChanged ( object sender, EventArgs e ) : void

Handles Command CanExecute changed

OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles Command changed

OnIconChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RibbonControl ( ) : System
UpdateCanExecute ( ) : void

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

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

Binds default properties of control to quick access element
public static BindQuickAccessItem ( FrameworkElement source, FrameworkElement element ) : void
source System.Windows.FrameworkElement Source item
element System.Windows.FrameworkElement Toolbar item
Результат void

CanExecuteCommand() защищенный Метод

Determines whether the Command can be executed
protected CanExecuteCommand ( ) : bool
Результат bool

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

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.
public abstract CreateQuickAccessItem ( ) : FrameworkElement
Результат System.Windows.FrameworkElement

ExecuteCommand() защищенный Метод

Execute command
protected ExecuteCommand ( ) : void
Результат void

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

Returns monitor in witch control is placed
public static GetControlMonitor ( FrameworkElement control ) : Rect
control System.Windows.FrameworkElement Control
Результат System.Windows.Rect

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

Returns screen workarea in witch control is placed
public static GetControlWorkArea ( FrameworkElement control ) : Rect
control System.Windows.FrameworkElement Control
Результат System.Windows.Rect

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

Occurs then CanAddToQuickAccessToolBar property changed
public static OnCanAddToQuickAccessToolbarChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Результат void

OnKeyTipBack() публичный Метод

Handles back navigation with KeyTips
public OnKeyTipBack ( ) : void
Результат void

OnKeyTipPressed() публичный Метод

Handles key tip pressed
public OnKeyTipPressed ( ) : void
Результат void

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

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

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

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

Identifies the CommandParameter dependency property.
public static DependencyProperty,System.Windows CommandParameterProperty
Результат System.Windows.DependencyProperty

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

Identifies the routed Command dependency property.
public static DependencyProperty,System.Windows CommandProperty
Результат System.Windows.DependencyProperty

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

Identifies the CommandTarget dependency property.
public static DependencyProperty,System.Windows CommandTargetProperty
Результат System.Windows.DependencyProperty

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

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

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

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