แก้ไข

แชร์ผ่าน


RibbonControlService Class

Definition

Represents a service that provides properties and methods to control the display and behavior of Ribbon controls.

public ref class RibbonControlService abstract sealed
public static class RibbonControlService
type RibbonControlService = class
Public Class RibbonControlService
Inheritance
RibbonControlService

Fields

CanAddToQuickAccessToolBarDirectlyProperty

Identifies the CanAddToQuickAccessToolBarDirectly dependency property.

CheckedBackgroundProperty

Identifies the CheckedBackground dependency property.

CheckedBorderBrushProperty

Identifies the CheckedBorderBrush dependency property.

ControlSizeDefinitionProperty

Identifies the ControlSizeDefinition dependency property.

CornerRadiusProperty

Identifies the CornerRadius dependency property.

DefaultControlSizeDefinitionProperty

Identifies the DefaultControlSizeDefinition dependency property.

DismissPopupEvent

Identifies the DismissPopup routed event.

FocusedBackgroundProperty

Identifies the FocusedBackground dependency property.

FocusedBorderBrushProperty

Identifies the FocusedBorderBrush dependency property.

IsInControlGroupProperty

Identifies the IsInControlGroup dependency property.

IsInQuickAccessToolBarProperty

Identifies the IsInQuickAccessToolBar dependency property.

LabelProperty

Identifies the Label dependency property.

LargeImageSourceProperty

Identifies the LargeImageSource dependency property.

MouseOverBackgroundProperty

Identifies the MouseOverBackground dependency property.

MouseOverBorderBrushProperty

Identifies the MouseOverBorderBrush dependency property.

PressedBackgroundProperty

Identifies the PressedBackground dependency property.

PressedBorderBrushProperty

Identifies the PressedBorderBrush dependency property.

QuickAccessToolBarControlSizeDefinitionProperty

Identifies the QuickAccessToolBarControlSizeDefinition dependency property.

QuickAccessToolBarIdProperty

Identifies the QuickAccessToolBarId dependency property.

RibbonProperty

Identifies the Ribbon dependency property.

ShowKeyboardCuesProperty

Identifies the ShowKeyboardCues dependency property.

SmallImageSourceProperty

Identifies the SmallImageSource dependency property.

ToolTipDescriptionProperty

Identifies the ToolTipDescription dependency property.

ToolTipFooterDescriptionProperty

Identifies the ToolTipFooterDescription dependency property.

ToolTipFooterImageSourceProperty

Identifies the ToolTipFooterImageSource dependency property.

ToolTipFooterTitleProperty

Identifies the ToolTipFooterTitle dependency property.

ToolTipImageSourceProperty

Identifies the ToolTipImageSource dependency property.

ToolTipTitleProperty

Identifies the ToolTipTitle dependency property.

Attached Properties

CanAddToQuickAccessToolBarDirectly

Gets or sets a value that indicates whether this control can be added directly to the Quick Access Toolbar.

CheckedBackground

Gets or sets the brush that is used to draw the background of the control when it is in the Checked state.

CheckedBorderBrush

Gets or sets the brush that is used to draw the outer border of the control when it in the Checked state.

ControlSizeDefinition

Gets or sets the RibbonControlSizeDefinition for this control.

CornerRadius

Gets or sets a value that indicates the amount that the corners of a ribbon button are rounded.

DefaultControlSizeDefinition

Gets or sets the default RibbonControlSizeDefinition for this control.

FocusedBackground

Gets or sets the brush that is used to draw the background of the control when it has focus.

FocusedBorderBrush

Gets or sets the brush that is used to draw the outer border of the control when it has focus.

IsInControlGroup

Gets a value that indicates whether the control is hosted in a RibbonControlGroup.

IsInQuickAccessToolBar

Gets a value that indicates whether the control is hosted in the Quick Access Toolbar.

Label

Gets or sets the text that is displayed next to or below the control.

LargeImageSource

Gets or sets the image that is displayed on the control when the image size is set to Large.

MouseOverBackground

Gets or sets the brush that is used to draw the background of the control when the mouse pointer is over it.

MouseOverBorderBrush

Gets or sets the brush that is used to draw the outer border of the control when the mouse pointer is over it.

PressedBackground

Gets or sets the brush that is used to draw the background of the control when it is pressed.

PressedBorderBrush

Gets or sets the brush that is used to draw the outer border of the control when it is pressed.

QuickAccessToolBarControlSizeDefinition

Gets or sets the RibbonControlSizeDefinition for this control when it is hosted in the Quick Access Toolbar.

QuickAccessToolBarId

Gets or sets a unique identifier that links a ribbon control to a corresponding control in the Quick Access Toolbar.

Ribbon

Gets a reference to the Ribbon that this control belongs to.

ShowKeyboardCues

Gets a value that indicates whether to show the keyboard focus visual for this control.

SmallImageSource

Gets or sets the image that is displayed on the control when the image size is set to Small.

ToolTipDescription

Gets or sets the descriptive text that is displayed in the ToolTip for this control.

ToolTipFooterDescription

Gets or sets the descriptive text that is displayed in the footer of the ToolTip for this control.

ToolTipFooterImageSource

Gets or sets the image that is displayed in the footer of the ToolTip for this control.

ToolTipFooterTitle

Gets or sets the title text that is displayed in the footer of the ToolTip for this control.

ToolTipImageSource

Gets or sets the image that is displayed in the ToolTip for this control.

ToolTipTitle

Gets or sets the title text that is displayed in the ToolTip for this control.

Methods

AddDismissPopupHandler(DependencyObject, RibbonDismissPopupEventHandler)

Adds a handler for the DismissPopup attached event.

GetCanAddToQuickAccessToolBarDirectly(DependencyObject)

Gets the value of the CanAddToQuickAccessToolBarDirectly attached property for an object.

GetCheckedBackground(DependencyObject)

Gets the value of the CheckedBackground attached property for an object.

GetCheckedBorderBrush(DependencyObject)

Gets the value of the CheckedBorderBrush attached property for an object.

GetControlSizeDefinition(DependencyObject)

Gets the value of the ControlSizeDefinition attached property for an object.

GetCornerRadius(DependencyObject)

Gets the value of the CornerRadius attached property for an object.

GetDefaultControlSizeDefinition(DependencyObject)

Gets the value of the DefaultControlSizeDefinition attached property for an object.

GetFocusedBackground(DependencyObject)

Gets the value of the FocusedBackground attached property for an object.

GetFocusedBorderBrush(DependencyObject)

Gets the value of the FocusedBorderBrush attached property for an object.

GetIsInControlGroup(DependencyObject)

Gets the value of the IsInControlGroup attached property for an object.

GetIsInQuickAccessToolBar(DependencyObject)

Gets the value of the IsInQuickAccessToolBar attached property for an object.

GetLabel(DependencyObject)

Gets the value of the Label attached property for an object.

GetLargeImageSource(DependencyObject)

Gets the value of the LargeImageSource attached property for an object.

GetMouseOverBackground(DependencyObject)

Gets the value of the MouseOverBackground attached property for an object.

GetMouseOverBorderBrush(DependencyObject)

Gets the value of the MouseOverBorderBrush attached property for an object.

GetPressedBackground(DependencyObject)

Gets the value of the PressedBackground attached property for an object.

GetPressedBorderBrush(DependencyObject)

Gets the value of the PressedBorderBrush attached property for an object.

GetQuickAccessToolBarControlSizeDefinition(DependencyObject)

Gets the value of the QuickAccessToolBarControlSizeDefinition attached property for an object.

GetQuickAccessToolBarId(DependencyObject)

Gets the value of the QuickAccessToolBarId attached property for an object.

GetRibbon(DependencyObject)

Gets the value of the Ribbon attached property for an object.

GetShowKeyboardCues(DependencyObject)

Gets the value of the ShowKeyboardCues attached property for an object.

GetSmallImageSource(DependencyObject)

Gets the value of the SmallImageSource attached property for an object.

GetToolTipDescription(DependencyObject)

Gets the value of the ToolTipDescription attached property for an object.

GetToolTipFooterDescription(DependencyObject)

Gets the value of the ToolTipFooterDescription attached property for an object.

GetToolTipFooterImageSource(DependencyObject)

Gets the value of the ToolTipFooterImageSource attached property for an object.

GetToolTipFooterTitle(DependencyObject)

Gets the value of the ToolTipFooterTitle attached property for an object.

GetToolTipImageSource(DependencyObject)

Gets the value of the ToolTipImageSource attached property for an object.

GetToolTipTitle(DependencyObject)

Gets the value of the ToolTipTitle attached property for an object.

RemoveDismissPopupHandler(DependencyObject, RibbonDismissPopupEventHandler)

Removes a handler for the DismissPopup attached event.

SetCanAddToQuickAccessToolBarDirectly(DependencyObject, Boolean)

Sets the value of the CanAddToQuickAccessToolBarDirectly attached property for an object.

SetCheckedBackground(DependencyObject, Brush)

Sets the value of the CheckedBackground attached property for an object.

SetCheckedBorderBrush(DependencyObject, Brush)

Sets the value of the CheckedBorderBrush attached property for an object.

SetControlSizeDefinition(DependencyObject, RibbonControlSizeDefinition)

Sets the value of the ControlSizeDefinition attached property for an object.

SetCornerRadius(DependencyObject, CornerRadius)

Sets the value of the CornerRadius attached property for an object.

SetDefaultControlSizeDefinition(DependencyObject, RibbonControlSizeDefinition)

Sets the value of the DefaultControlSizeDefinition attached property for an object.

SetFocusedBackground(DependencyObject, Brush)

Sets the value of the FocusedBackground attached property for an object.

SetFocusedBorderBrush(DependencyObject, Brush)

Sets the value of the FocusedBorderBrush attached property for an object.

SetLabel(DependencyObject, String)

Sets the value of the Label attached property for an object.

SetLargeImageSource(DependencyObject, ImageSource)

Sets the value of the LargeImageSource attached property for an object.

SetMouseOverBackground(DependencyObject, Brush)

Sets the value of the MouseOverBackground attached property for an object.

SetMouseOverBorderBrush(DependencyObject, Brush)

Sets the value of the MouseOverBorderBrush attached property for an object.

SetPressedBackground(DependencyObject, Brush)

Sets the value of the PressedBackground attached property for an object.

SetPressedBorderBrush(DependencyObject, Brush)

Sets the value of the PressedBorderBrush attached property for an object.

SetQuickAccessToolBarControlSizeDefinition(DependencyObject, RibbonControlSizeDefinition)

Sets the value of the QuickAccessToolBarControlSizeDefinition attached property for an object.

SetQuickAccessToolBarId(DependencyObject, Object)

Sets the value of the QuickAccessToolBarId attached property for an object.

SetSmallImageSource(DependencyObject, ImageSource)

Sets the value of the SmallImageSource attached property for an object.

SetToolTipDescription(DependencyObject, String)

Sets the value of the ToolTipDescription attached property for an object.

SetToolTipFooterDescription(DependencyObject, String)

Sets the value of the ToolTipFooterDescription attached property for an object.

SetToolTipFooterImageSource(DependencyObject, ImageSource)

Sets the value of the ToolTipFooterImageSource attached property for an object.

SetToolTipFooterTitle(DependencyObject, String)

Sets the value of the ToolTipFooterTitle attached property for an object.

SetToolTipImageSource(DependencyObject, ImageSource)

Sets the value of the ToolTipImageSource attached property for an object.

SetToolTipTitle(DependencyObject, String)

Sets the value of the ToolTipTitle attached property for an object.

Attached Events

DismissPopup

Occurs when a ribbon popup is closed.

Applies to