If mySimpleImage.CanFreeze ThenYes, I'm giving VB some love in today's tip.
' Makes the vector image frozen.
mySimpleImage.Freeze()
End If
Checking CanFreeze is necessary because not all Freezable objects can be frozen at every point in a WPF application's lifecycle. If Freeze() is called on an object that cannot currently be frozen, an exception will be thrown.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.