LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
SelectedForeground Property
See Also 
Leadtools.Windows.Controls Namespace > ImageListItem Class : SelectedForeground Property



Gets or sets the brush used to draw the text of selected items. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Appearance")>
<DescriptionAttribute("The color used to display the text of selected items.")>
Public Property SelectedForeground As Brush
Visual Basic (Usage)Copy Code
Dim instance As ImageListItem
Dim value As Brush
 
instance.SelectedForeground = value
 
value = instance.SelectedForeground
C# 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("The color used to display the text of selected items.")]
public Brush SelectedForeground {get; set;}
C++/CLI 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("The color used to display the text of selected items.")]
public:
property Brush^ SelectedForeground {
   Brush^ get();
   void set (    Brush^ value);
}

Property Value

A System.Windows.Media.Brush object that is used to draw the text of selected items. Default value is a System.Windows.Media.SolidColorBrush of System.Windows.SystemColors.HighlightTextColor.

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

Remarks

Use the Foreground property to define the brush used to draw the item text set in the Text property.

Use the ImageListItem.SelectedForeground dependency property to set the brush used to draw the text of the selected item.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also