Version

DrawBorders Method (GalleryItemUIElementBase)

Draws the element's Borders.
Syntax
'Declaration
 
Protected Overrides Sub DrawBorders( _
   ByRef drawParams As Infragistics.Win.UIElementDrawParams _
) 
protected override void DrawBorders( 
   ref Infragistics.Win.UIElementDrawParams drawParams
)

Parameters

drawParams
Example
This sample, overrides the virtual method DrawBorders on UIElement. Using the DrawButtonBorders method of DrawParams, we emulate the OfficeXP style border drawing.

Imports Infragistics.Win

 Protected Overrides Sub DrawBorders(ByRef drawParams As UIElementDrawParams)

     ' Use DrawParams to draw an XP style border. on the element.
drawParams.DrawButtonBorders(UIElementButtonStyle.OfficeXPToolbarButton, UIElementButtonState.MouseOver)

 End Sub
using Infragistics.Win;

protected override void DrawBorders ( ref UIElementDrawParams drawParams )
{
	
	// Use DrawParams to draw an XP style border. on the element.
	drawParams.DrawButtonBorders(UIElementButtonStyle.OfficeXPToolbarButton, UIElementButtonState.MouseOver);

}
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