IconSource IconSource IconSource IconSource Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents the base class for an icon source.

public : class IconSource : DependencyObject, IIconSourcepublic class IconSource : DependencyObject, IIconSourcePublic Class IconSource Inherits DependencyObject Implements IIconSource// You can use this class in JavaScript.
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Inherited Members

Inherited methods

Inherited properties

Remarks

IconSource is similar to IconElement. However, because it is not a FrameworkElement, it can be shared.

IconSource derived classes

IconSource is the parent class for these classes:

Properties

Foreground Foreground Foreground Foreground

Prerelease. Gets or sets a brush that describes the foreground color.

public : Brush Foreground { get; set; }public Brush Foreground { get; set; }Public ReadWrite Property Foreground As Brush// You can use this property in JavaScript.
<iconSource Foreground="{StaticResource resourceName}"/>

Value
Brush Brush Brush Brush

The brush that paints the foreground of the control. The default is null, (a null brush) which is evaluated as Transparent for rendering. However, this value is typically set by a default system resource at runtime, which is tied to the active theme and other settings.

ForegroundProperty ForegroundProperty ForegroundProperty ForegroundProperty

Prerelease. Identifies the Foreground dependency property.

public : static DependencyProperty ForegroundProperty { get; }public static DependencyProperty ForegroundProperty { get; }Public Static ReadOnly Property ForegroundProperty As DependencyProperty// You can use this property in JavaScript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Foreground dependency property.