次の方法で共有


IXRBorder (Compact 2013)

3/28/2014

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

Syntax

class IXRBorder : public IXRFrameworkElement

Inheritance Hierarchy

IXRDependencyObject

  IXRUIElement

    IXRFrameworkElement

      IXRBorder

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.

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

See Also

Reference

Classes for UI Element Management