Version

BorderStyle Property (FormattedLinkEmbeddableUIElement)

Overridden property that returns the border style this ui element is going to have.
Syntax
'Declaration
 
Public Overrides ReadOnly Property BorderStyle As UIElementBorderStyle
public override UIElementBorderStyle BorderStyle {get;}
Example
This sample demonstrates BorderStyle in use with the ControlElement and IsFlatModeProperty. If the ControlElement is in flat mode, we draw a simple solid border, otherwise we draw raised.

Imports Infragistics.Win

Public Overrides Property BorderStyle() As UIElementBorderStyle

       Get

				' Returns borderstyle based on FlatMode property of the control.
           If Me.ControlElement.UltraControl.IsFlatMode Then
               Return UIElementBorderStyle.Solid
           Else
               Return UIElementBorderStyle.Raised
           End If

       End Get

       Set(ByVal Value As UIElementBorderStyle)

           MyBase.BorderStyle = Value

       End Set

   End Property
using Infragistics.Win;

public override UIElementBorderStyle BorderStyle
{

	get
	{

		// Return borderstyle based on FlatMode property of the control.

		if (this.ControlElement.UltraControl.IsFlatMode)
			return UIElementBorderStyle.Solid;
		else
			return UIElementBorderStyle.Raised;

	}

}
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