Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.03 KB

kb-common-windows8-brushes.md

File metadata and controls

30 lines (22 loc) · 1.03 KB
title description type page_title slug tags res_type
Cannot access Freezable System.Windows.Media.SolidColorBrush across threads because it cannot be frozen
InvalidOperationException occurs with the Windows8 Telerik theme
troubleshooting
InvalidOperationException Cannot access Freezable SolidColorBrush across threads because it cannot be frozen
kb-common-windows8-brushes
windows8,theming,brushes,exception
kb

Environment

Product Version
Telerik UI for WPF 2023.3.1114

Description

InvalidOperationException occurs in some cases when using the Telerik Windows8 theme in a scenario with multiple UI threads.

InvalidOperationException was unhandled by user code Message=Cannot access Freezable 'System.Windows.Media.SolidColorBrush' across threads because it cannot be frozen.

Solution

To fix the issue, call the Freeze method on the Windows8Palette object.

[C#]

{{region kb-common-windows8-brushes-0}} Telerik.Windows.Controls.Windows8Palette.Palette.Freeze(); {{endregion}}