BitmapIconSource BitmapIconSource BitmapIconSource BitmapIconSource 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 an icon source that uses a bitmap as its content.

public : class BitmapIconSource : IconSource, IBitmapIconSourcepublic class BitmapIconSource : IconSource, IBitmapIconSourcePublic Class BitmapIconSource Inherits IconSource Implements IBitmapIconSource// You can use this class in JavaScript.
<BitmapIconSource .../>

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

BitmapIconSource is similar to BitmapIcon. However, because it is not a FrameworkElement, it can be shared.

Constructors

BitmapIconSource() BitmapIconSource() BitmapIconSource() BitmapIconSource()

Prerelease. Initializes a new instance of the BitmapIconSource class.

public : BitmapIconSource()public BitmapIconSource()Public Sub New()// You can use this method in JavaScript.

Properties

ShowAsMonochrome ShowAsMonochrome ShowAsMonochrome ShowAsMonochrome

Prerelease. Gets or sets a value that indicates whether the bitmap is shown in a single color.

public : PlatForm::Boolean ShowAsMonochrome { get; set; }public bool ShowAsMonochrome { get; set; }Public ReadWrite Property ShowAsMonochrome As bool// You can use this property in JavaScript.
<BitmapIconSource ShowAsMonochrome="bool"/>

Value
PlatForm::Boolean bool bool bool

true to show the bitmap in a single color; false to show the bitmap in full color. The default is true.

ShowAsMonochromeProperty ShowAsMonochromeProperty ShowAsMonochromeProperty ShowAsMonochromeProperty

Prerelease. Identifies the ShowAsMonochrome dependency property.

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

The identifier for the ShowAsMonochrome dependency property.

UriSource UriSource UriSource UriSource

Prerelease. Gets or sets the Uniform Resource Identifier (URI) of the bitmap to use as the icon content.

public : Uri UriSource { get; set; }public Uri UriSource { get; set; }Public ReadWrite Property UriSource As Uri// You can use this property in JavaScript.
<BitmapIconSource UriSource="uriString"/>

Value
Uri Uri Uri Uri

The Uri of the bitmap to use as the icon content. The default is null.

UriSourceProperty UriSourceProperty UriSourceProperty UriSourceProperty

Prerelease. Identifies the UriSource dependency property.

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

The identifier for the UriSource dependency property.