ProgressBar using MVVM
As you continue on with MVVM, you will discover that commanding is the key to handling a number of situations in MVVM. I'd keep Bob's code somewhere handy, you will likely need it some time soon.John...
View ArticleProgressBar using MVVM
Thank you very much. Though I dont intend to use prism or other frameworks for MVVM at the moment, I am glad that your replies help me understand it. Thank you :)
View ArticleProgressBar using MVVM
Either the DelegateCommand from Prism or the RelayCommand from Josh's MVVM article, they are the implementation of the ICommand interface. For binding one Command object/property in the ViewModel to...
View ArticleProgressBar using MVVM
You can simply use RelayCommand from Josh Smith's famous MVVM article.Thanks, Muhammad shujaatsiddiqi.blogspot.comMuhammad Siddiqi
View ArticleProgressBar using MVVM
@ Bob Bao:I think the DelegateCommand doesnt work with the normal VS 2010 and requires Prism. Is it possible that I could substitute it with something to work with VS 2010?@ Wodahs:Thank you :) I...
View ArticleProgressBar using MVVM
Can't really tell from your snippet, but I think you may have it backwards. The UI thread needs to be idle, while the background worker works. I'm just going to do some very simplified pseudo code to...
View ArticleProgressBar using MVVM
Well, I can share the code here. I use a command on one button, and in the command, I start one BackgroundWorker to update the model.Progress value.Below is the code of the Model:publicclass Model :...
View ArticleProgressBar using MVVM
Wodahs,I tried to implement it using BackgroundWorker class.The problem is that, the UI thread is running, while the backgroundworker has been getting the updates, yet it doesnt update it.Let me give...
View ArticleProgressBar using MVVM
Thank you bob. I will check it outside my office since it seems to be blocking the website :(
View ArticleProgressBar using MVVM
Not same with the idea from Geert, I do not use the Catel project, but it is a very good MVVM pattern project. My sample useBackgroundWorker to update the ProgressBar in...
View ArticleProgressBar using MVVM
Sounds like Execute is running on the UI thread (i.e. the same thread as the View) in which case the UI won't update till it's done.Use a background worker for this and update your progress property in...
View ArticleProgressBar using MVVM
In Catel, we have built a thing called View Model To Model mappings. It automatically takes over this stuff for you. Another option is to show a progress indicator without a progress (a "busy...
View ArticleProgressBar using MVVM
I have a View with a progress bar.This is binded to the ViewModel's property called Progress.The VM also has a property that starts an execution by calling "Execute" method. This Execute() has about 5...
View Article
More Pages to Explore .....