Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / Border Class
Members Example


In This Topic
    Border Class
    In This Topic
    Similar to the Framework's Border control, but with more flexibility than said control.
    Syntax
    'Usage
     
    
    Dim instance As Border
    Remarks

    The first reason for this control's flexibility is that the ThicknessCornerRadius of all 4 sides of the Border can be set independently.

    On top of that, any View control can be set as the Border's Content & aligned easily through the HorizontalContentOptionsVerticalContentOptions properties.

    Finally, the Border's Content will also inherit the TextColorFontAttributesFontSizeFontFamily properties when they are set.

    Example

    The following code will surround the inserted Content with this type of Border:

    <xctk:Border HeightRequest="96"
                 WidthRequest="120"
                 BorderThickness="10,6,5,9"
                 CornerRadius="40,10,0,20"
                 TextColor="Red"
                 HorizontalContentOptions="Center"
                 VerticalContentOptions="Center"
                 Margin="20"
                 BorderBrush="Orange">
     <VerticalStackLayout>
      <Label Text="My"/>
      <Label Text="Border"/>
     </VerticalStackLayout>
    </xctk:Border>
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          Microsoft.Maui.Controls.Element
             Microsoft.Maui.Controls.NavigableElement
                Microsoft.Maui.Controls.VisualElement
                   Microsoft.Maui.Controls.View
                      Microsoft.Maui.Controls.Compatibility.Layout
                         Microsoft.Maui.Controls.TemplatedView
                            Xceed.Maui.Toolkit.Control
                               Xceed.Maui.Toolkit.Border

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)  
    Top
    Protected Fields
     NameDescription
    Protected Field (Inherited from Microsoft.Maui.Controls.View)
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public PropertyGets or sets the Brush that will be used to paint the Control's background. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public PropertyGets or sets the Brush that will be used to paint the Control's Border. (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the thickness of this Control's Border. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets the Border's content, in other words, what's inside the Border.  
    Public Property (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Public PropertyGets or sets the radius for the 4 corners of this Control.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets the FontAttributes that will be applied to the Control's textual Content.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the font family that will be used to display the Control's textual Content.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the font size that will determine the scale of the Control's textual Content.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets how the Control's Content is aligned horizontally. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets if the Control's VisualStates are overridden or not. (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the amount of padding added around the Control.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public PropertyGets or sets the text's Color. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets how the Control's Content is aligned vertically. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Top
    Protected Properties
    Public Methods
     NameDescription
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.View)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Internal Method (Inherited from Microsoft.Maui.Controls.View)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Internal Method (Inherited from Microsoft.Maui.Controls.View)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Xceed.Maui.Toolkit.Control)
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method  
    Protected MethodOverridden.   
    Protected MethodOverridden.   
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Protected Method (Inherited from Xceed.Maui.Toolkit.Control)
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Top
    Public Events
     NameDescription
    Public Event (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public EventThis event is raised when the finger is pressed or the mouse button is clicked while inside the Border's bounds.  
    Public EventThis event is raised when the pointer enters the Border's bounds.  
    Public EventThis event is raised when the pointer leaves the Border's bounds.  
    Public EventThis event is raised when the finger or mouse button is released while inside the Border's bounds.  
    Public Event (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Event (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, 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