←Select platform

SelectedForeground Property

Summary

Gets or sets the brush used to draw the text of selected items. This is a dependency property.

Syntax

C#
VB
C++
public Brush SelectedForeground { get; set; } 
Public Property SelectedForeground As Brush 
public: 
property Brush^ SelectedForeground { 
   Brush^ get(); 
   void set (    Brush^ ); 
} 

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.

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.

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Controls Assembly