WindowsFormsHost.Foreground Property

 

Gets or sets the hosted control's foreground color.

Namespace:   System.Windows.Forms.Integration
Assembly:  WindowsFormsIntegration (in WindowsFormsIntegration.dll)

public Brush Foreground { get; set; }

Property Value

Type: System.Windows.Media.Brush

A Brush used to set the foreground color for the hosted control.

This dependency property is identified by the ForegroundProperty field. By default, this property is mapped to update the Control.ForeColor property of the hosted control. For more information on mapping the Foreground property, see Windows Forms and WPF Property Mapping.

<object Foreground="Brush"/>

Brush

See Brush for XAML Attribute syntax.

.NET Framework
Available since 3.0
Return to top
Show: