Compartilhar via


IXRPanel::SetBackground (Compact 2013)

3/28/2014

This method sets the brush to use to fill the panel.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetBackground(
    __in IXRBrush *pBackground
) = 0; 

Parameters

  • pBackground
    [in] Pointer to an object derived from IXRBrush to use to fill the panel.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The brush you pass into pBackground determines the background of the panel. A brush can represent a solid color, a linear or radial gradient, an image, or an applied video brush. For more information about the brush classes derived from IXRBrush, see IXRBrush.

.NET Framework Equivalent

System.Windows.Controls.Panel.Background

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPanel
IXRPanel::GetBackground