Freigeben über


OutOfBrowserSettings.Icons Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a collection of Icon instances associated with the application.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property Icons As IconCollection
public IconCollection Icons { get; }
<OutOfBrowserSettings>
  <OutOfBrowserSettings.Icons>
    oneOrMoreIconElements
  </OutOfBrowserSettings.Icons>
</OutOfBrowserSettings>

XAML Values

  • oneOrMoreIconElements
    One or more Icon object elements.

Property Value

Type: System.Windows.IconCollection
The icons associated with the application.

Remarks

The Icons collection represents icons of different sizes that the operating system can use in various locations for out-of-browser applications.

This property is optional. If you do not specify icons, default icons will be used. If you do specify icons, you should specify one for each of the following dimensions: 16x16, 32x32, 48x48, and 128x128.

Icons must be .png files that you have added to the project and that have Build Action values of Content. Additionally, the .png files must be of the dimensions indicated in the Icon.Size property values. The operating system will choose the most appropriate size to use in different situations. If an appropriate icon cannot be loaded, the default icon will appear.

This property is read-only at run time, but you can set it in the out-of-browser configuration. For more information, see How to: Configure an Application for Out-of-Browser Support.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.