Compartilhar via


IXRControl::SetForeground (Compact 2013)

3/28/2014

This method sets the brush that paints the foreground of this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetForeground(
    IXRBrush *pForeground
) = 0; 

Parameters

  • pForeground
    [in] Pointer to an object derived from IXRBrush that paints the new foreground of this control.

Return Value

Returns an HRESULT that indicates success or failure.

.NET Framework Equivalent

System.Windows.Controls.Control.Foreground

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRControl
IXRControl::GetForeground