Version

BorderStyle Property (MonthPopupControlUIElement)

Returns the borderstyle for the control.
Syntax
'Declaration
 
Public Overrides ReadOnly Property BorderStyle As Infragistics.Win.UIElementBorderStyle
public override Infragistics.Win.UIElementBorderStyle BorderStyle {get;}
Remarks

Note that not all styles are available on all operating systems. If the version of the OS that your program is running on does not support a particular border style, borders formatted with that style will be drawn using solid lines.

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