WPF Tip #7 - Freeze WPF Freezable Objects from Code

added by DotNetKicks
3/31/2017 1:20:43 PM

1 Kicks, 148 Views

In Tip #6, we took a vector image resource and set it to Freeze = True in the XAML markup. Suppose that you need the resource to freeze at some point later in the application's execution. You can simply add this code to that point in the application: If mySimpleImage.CanFreeze Then ' Makes the vector image frozen.