Context :
I have a wpf window that has a variable float processTime = -1;
.
This variable is passed by reference to a user control. The user control then pass the reference of the variable to a COM. The COM increments the variable.
If I put a breakpoint in my window, I can see the new variable value.
Now, I want to display it on screen.
Problem :
As far as I know, you can't bind a variable to a wpf textblock. You must use a property.
Also, I can't pass a property by ref to my function. That's precisely why I'm using a variable.
EDIT : Note that the COM job is to stream a video with directshow filters. Which means the job is not just done after the call... It's running for a long time, thus why I want to bind a variable to screen so you can see the values, live.
Cheap solution
I could do some kind of timer that updates a textblock value every second...