A WPF class which defines an object that has a modifiable state and a read-only (frozen) state. Classes that derive from Freezable provide detailed change notification, can be made immutable, and can clone themselves.
Questions tagged [freezable]
42 questions
2
votes
2 answers
What I want to do is FreezableCollection.AddRange(collectionToAdd)
What I want to do is FreezableCollection.AddRange(collectionToAdd)
Each time I add to the FreezableCollection an event is raised and something happens. Now I have a new collection I would want to add but this time I want the CollectionChanged event…

adentum
- 982
- 1
- 11
- 21
2
votes
2 answers
Cannot use a DependencyObject that belongs to a different thread than its parent Freezable
Ive got a wpf form, from which i want to display a loading popup as soon as the user makes a choice from the controls, because the loading of the data could take long seeing as the Database is not Local. I got everything working up until where i…

user1168738
- 21
- 1
- 2
2
votes
0 answers
Changing control template via visual state results in error: "This Freezable cannot be frozen"
I'm trying to toggle a control between compact and expanded states based on the
screen size. To do this I'm using visual states to change the control's template:

McGarnagle
- 101,349
- 31
- 229
- 260
2
votes
1 answer
Cannot set a property on object because it is in a read-only state
In my XAML I have the following:
user2268507
2
votes
1 answer
The mysteries of extending the WPF animation classes
Silverlight has a property on its animation timelines (like DoubleAnimation) called EasingFunction which allows you to specify a function with which to interpolate two values. Even though it's coming in .NET 4, I'd like to port this to 3.5. After…

Josh Santangelo
- 936
- 4
- 11
- 16
1
vote
0 answers
Easing function without inheriting from Freezable?
I am trying to implement a custom IEasingFunction that is basically a wrapper for an other IEasingFunction but it adds a pause at the beginning and end of the animation. I don't want it to inherit from EasingFunctionBase because having an EasingMode…

nalka
- 1,894
- 11
- 26
1
vote
2 answers
How can you set a DynamicResource in code-behind if the target is not a FrameworkElement?
Consider this BindingProxy class which is a subclass of Freezable (so it participates in resource-hierarchy lookups when added to a FrameworkElement's Resources collection)...
public class BindingProxy : Freezable {
public BindingProxy(){}
…

Mark A. Donohoe
- 28,442
- 25
- 137
- 286
1
vote
1 answer
Does Freezable or Binding take precedence in WPF?
So, System.Windows.Media.Brushes are freezable. This means that if you call .Freeze() on a Brush, it becomes unmodifiable. This improves performance.
In WPF, you can use Bindings are a way for properties to update when other properties change.
So,…

bwall
- 984
- 8
- 22
1
vote
1 answer
telerik:PieSeries Binding Colors CanFreeze Warning
I am currently working on a WPF project with the Telerik FW.
During the runtime I am getting the following warning:
System.Windows.Freezable Warning: 1 : CanFreeze is returning false because a DependencyProperty on the Freezable has a value that is…

pix
- 1,264
- 19
- 32
1
vote
1 answer
How to freeze Path Data
We have many complex Paths in our WPF application. An example would be:

SepehrM
- 1,087
- 2
- 20
- 44
1
vote
0 answers
WPF - Force Storyboard to Thaw and Refreeze Resources
In my WPF applications, I allow users to switch between custom Light and Dark themes. I use a single set of control templates and handle the theme switch by swapping out brush resources.
This works really well except for brushes that are referenced…

keithernet
- 135
- 6
1
vote
0 answers
Freezable exception after logging in remotely and logging back locally
I am getting error reports from users who are logging in remotely to application.
The app works fine until when they come back to the office and log directly to their desktops - the app crashes and the error report is a standard 'Freezable cannot be…

tomasz_kajetan_stanczak
- 707
- 5
- 9
1
vote
1 answer
Storyboard.TargetProperty="Style"
I am trying to switch from using triggers and themes to VisualStateManager because it appears that WindowsRT is moving in this direction and I want to minimize the amount of code that is different. To that effect, I'm trying to set a simple scheme…

Quark Soup
- 4,272
- 3
- 42
- 74
1
vote
1 answer
WPF Merged ResourceDictionary inconsistencies
I have a ResourceDictionary, which consists of a Brush object and a Style using this Brush object for several animated properties in its Template property (via StaticResource markup extension). The problem is; when I merge the dictionary with the…

Andre
- 11
- 2
1
vote
1 answer
WPF: Difference between Freezable and Visual
Sure, the Freezable class and the Visual class in WPF have a totally different purpose. My question focuses more on the difference between objects which implement either the Visual class or the Freezable class. Because they both are normally related…

Sam
- 1,301
- 1
- 17
- 26