Version

DrawOffice2007RibbonButtonBorders(UIElementDrawParams,UIElementButtonState,Boolean) Method

Draws a border in the style of an an Office2007 Ribbon Button.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawOffice2007RibbonButtonBorders( _
   ByRef drawParams As UIElementDrawParams, _
   ByVal buttonState As UIElementButtonState, _
   ByVal enabled As Boolean _
) 
public static void DrawOffice2007RibbonButtonBorders( 
   ref UIElementDrawParams drawParams,
   UIElementButtonState buttonState,
   bool enabled
)

Parameters

drawParams
The UIElementDrawParams used to provide rendering information.
buttonState
The UIElementButtonState of the button.
enabled
Specifies whether the buttons is enabled.
Remarks

Office2007 Ribbon button borders are characterized by an outer border which is drawn with a vertical gradient and an inner border which is partially transparent and modifies the color of the Background. The border colors are taken from the drawParams. The outer colors are determined by the BorderColor and BorderColor2. The BorderColor3DBase is used as the inner border color.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also