Edit this page

Switching Icons at Runtime

The IconResource extension is a markup extension that allows you to switch icons in your application at runtime. More information on the approach is available here.

Using Available IconSets

RadSpreadsheet comes with two separate sets of icons that can be used in its UI. They reside in the Telerik.Windwos.Controls.Spreadsheet.dll and defining an IconSources resource for them is demonstrated in Example 1.

[XAML] Example 1: Creating IconSources

<telerik:IconSources x:Key="SpreadsheetIconPaths" LightBasePath="/Telerik.Windows.Controls.Spreadsheet;component/Images/Light/"
                           DarkBasePath="/Telerik.Windows.Controls.Spreadsheet;component/Images/Dark/"/>

To browse all icons you can download the source code of the controls from your Telerik account. The images are located at \Telerik_UI_for_Silverlight_Source_[Version]\Controls\Spreadsheet\Controls\Images\Light.

See Also