Note that there are some explanatory texts on larger screens.

plurals
  1. USNZJames
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThe long running method goes through and updates a lot of ViewModel objects, lots of properties. In the Setter for each of the properties I am calling OnPropertyChanged(), so these are all getting called before the long running method completes as they are part of it. Is that the method you meant? I'm not sure the inner workings of INotifyPropertyChanged but based on the observed behaviour, I'm guessing INotifyPropertyChanged sends the call to the GUI dispatcher thread, which then queues up along with all subsequent ones, until the long running work completes and the GUI thread frees up?
      singulars
    2. COThanks for the example. Just running my app now with some changes and the animation is running, but when the mouse is over the window it freezes, starts and stops sporadically and is very jerky and stops for a lot of the time. As soon as the mouse is no longer hovering over the application window and is on another area of the desktop, the animation resumes smoothly and executes normally. Why is this?
      singulars
    3. COI'm trying to do it via MVVM so avoiding direct btn property changes if possible, Id ideally like to update a dependency property which would then affect the GUI. Can you not update the dependency property on the GUI thread by using dispatcher invoke? As that is what I did up above initially but that wasnt working. Alternatively, I've posted the buttons style definition above and added in a block for doing it via a data trigger, is this possible? And what mistake have I made as it isn't seeming to work.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload