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
0
votes
1 answer
using storyboard to raise a custom command. Error: Storyboard Not freezable
I have having issues with a storyboard that is complaining about being unfreezable. There are alot of links on google about this, however I am not sure from reading that information how I can achieve what I want. (ie pretty much just execute a…

Dessus
- 2,147
- 1
- 14
- 24
0
votes
3 answers
WPF frozen BitmapImage not showing
I am using a viewmodel bound to an image property on the UI and the viewmodel contains an ImageSource property. I set that property using the following function
private BitmapImage GetImageFromUri(Uri urisource)
{
if (urisource ==…

ak3nat0n
- 6,060
- 6
- 36
- 59
0
votes
2 answers
How do I set the binding of a child proxy relative to the DataContext?
I looked at a lot of topics, but they all in one way or another are related to the definition of the DataContext of UI elements.
I have a task that requires a completely different approach.
And no matter how much I puzzled over the decision, I could…

EldHasp
- 6,079
- 2
- 9
- 24
0
votes
0 answers
TaskbarItemInfo.Overlay binding to a DrawingImage instance stops image updates by code
I'm trying to use a GeometryDrawing with a dynamic content as source for
TaskbarItemInfo.Overlay. The image in code below is based on a GeometryDrawing which Brush is continuously updated by code.
1/ For test purpose, a copy of the image with…

mins
- 6,478
- 12
- 56
- 75
0
votes
2 answers
I want to make a popup which does not allows user to close browser until popup closes
I want to make popup which freezes the browser until the popup is closed. But I am stuck at a point since on closing the browser, it is asking the user to stay or leave but when a user clicks on leave it shuts down. I instead want a that when a user…

John
- 1
- 2
0
votes
1 answer
Error message "Cannot animate '(0).(1)' on an immutable object instance" for Button with RelayCommand
I Use a extended button managed with two properties: IsLocked and IsRequired.
IsLocked deactivates the button by using a RelayCommand :
public class RelayCommand : ICommand
{
private Action _execute;
private Func _canExecute;
…

profou
- 197
- 1
- 17
0
votes
1 answer
Automatic updte of ListView items
I am new to WPF Binding. Is there any way the listview automatically update when one of the item in ItemSource modifies its own dependecny property. I was trying it to do with FreezableCollection.
My code is given below and the aim is to update the…

Nidhin MS
- 229
- 1
- 11
0
votes
0 answers
Templated Animation : Can I reference parent properties in a Timeline?
Given the following custom animation class : (From one of the answers to this question) :
public class BrushAnimation : AnimationTimeline {
public Brush From {
get { return this.GetValue( FromProperty ) as Brush; }
set {…

Will
- 3,413
- 7
- 50
- 107
0
votes
0 answers
Threading with ImageDrawings and freeze
I have a problem creating an Image in a background-thread.
I have a main-icon (16x16 pixel) that should be merged with other icons, that can be an overlay. My code for this is this:
private void GenerateConnectionIcon()
{
var dGr = new…

Hunv
- 385
- 7
- 17
0
votes
1 answer
Dictionaries in Freezables
I want to create a Freezable that contains a Dictionary as one DependencyProperty. So I think I need a freezable Dictionary because it must not be changed when the Freezable gets frozen... or am I wrong? If so what do I really have to do?

HerpDerpington
- 3,751
- 4
- 27
- 43
0
votes
1 answer
LinqPad WPF window InvalidOperationException on second execution
I try to open a WPF window containing my WPF user control on LinaPad.
var w = new System.Windows.Window() { Content = myControl };
w.ShowDialog();
This code works only for the first time execution after opening a query tab.
If I execute the code…

tk.
- 1,206
- 1
- 23
- 32
0
votes
1 answer
Binding to FrameworkElement's properties inside an attached property
I already now how to solve my problem but I need an explanation why it works this way. I've created a test attached property which sets Text property of a TextBlock control. Because of my need of having more parameters in my attached property, I…

SOReader
- 5,697
- 5
- 31
- 53