IXRBorder (Windows Embedded CE 6.0)

1/6/2010

This class draws a border, background, or both around another object.

Syntax

class IXRBorder : public IXRFrameworkElement

Methods

In addition to the methods inherited from IXRFrameworkElement, this class exposes the following methods.

Name Description

IXRBorder::GetBackground

Retrieves the IXRBrush that fills the background of the border.

IXRBorder::GetBorderBrush

Retrieves the IXRBrush that is used to create the border.

IXRBorder::GetBorderThickness

Retrieves the thickness of the border.

IXRBorder::GetChild

Retrieves the child element to draw the border around.

IXRBorder::GetCornerRadius

Retrieves the radius for the corners of the border.

IXRBorder::GetPadding

Retrieves the distance between the IXRBorder and its child object.

IXRBorder::SetBackground

Sets the IXRBrush that fills the background of the border.

IXRBorder::SetBorderBrush

Sets the IXRBrush that is used to create the border.

IXRBorder::SetBorderThickness

Sets the thickness of the border.

IXRBorder::SetChild

Sets the child element to draw the border around.

IXRBorder::SetCornerRadius

Sets the radius for the corners of the border.

IXRBorder::SetPadding

Sets the distance between the IXRBorder and its child object.

Remarks

You can specify basic properties of an IXRBorder by setting its Width, Height, BorderThickness, and Background color. In addition, you can round the border corners by setting the CornerRadius property, and you can position the object inside the IXRBorder by setting the Padding property.

An IXRBorder can contain only one child object. If you want to put a border around multiple objects, wrap them in a container object such as IXRStackPanel.

You can also define an IXRBorder object in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

  IXRUIElement

    IXRFrameworkElement

      IXRBorder

.NET Framework Equivalent

System.Windows.Controls.Border

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for UI Element Management

Other Resources