IXRBorder (Compact 2013)
3/28/2014
This class draws a border, background, or both around another object.
Syntax
class IXRBorder : public IXRFrameworkElement
Inheritance Hierarchy
IXRBorder
Methods
In addition to the methods inherited from IXRFrameworkElement, this class exposes the following methods.
Name |
Description |
---|---|
Retrieves the IXRBrush that fills the background of the border. |
|
Retrieves the IXRBrush that is used to create the border. |
|
Retrieves the thickness of the border. |
|
Retrieves the child element to draw the border around. |
|
Retrieves the radius for the corners of the border. |
|
Retrieves the distance between the IXRBorder and its child object. |
|
Sets the IXRBrush that fills the background of the border. |
|
Sets the IXRBrush that is used to create the border. |
|
Sets the thickness of the border. |
|
Sets the child element to draw the border around. |
|
Sets the radius for the corners of the border. |
|
Sets the distance between the IXRBorder and its child object. |
Thread Safety
Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.
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.
When you create a class instance, use an IXRBorderPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.
You can also define an IXRBorder object in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the Border Class on MSDN.
.NET Framework Equivalent
System.Windows.Controls.Border
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |