Tag: MVVM
-
When I wrote my article regarding use of the BackgroundWorker to keep the UI responsive, I used the WebClient’s DownloadString method as an example of a long-running process. I used this as an example in explaining how to use the BackgroundWorker, which simply allows for thread-blocking code to be run…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
As I mentioned in my article on implementing the BackgroundWorker to keep your WPF user interface responsive, the BackgroundWorker class supports cancellation. I will illustrate here how easy it is to accomplish. I’ll build this example by continuing the example in the previous article. First, let’s add a BackgroundWorker property…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
I was in search of an easy implementation of a splash screen for my current project. I wanted to be able to show a splash screen and update it with current status information as my application initialized. The standard SplashScreen class provided by Microsoft does not support showing dynamic content…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
In my current project, we had a need to create a custom WPF dialog box. Writing our own provides us the ability to easily skin the window with our application’s theme as well as gives us the ability to generate any buttons we wanted. We wanted our custom dialog box…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
The other day I started moving all my event handlers in my application from the View’s code-behind file to the ViewModel. I accomplished this using command binding. This was all easy enough – until I came to my Close method. You see, in the MVVM (Model – View – View…
-
In the Model-View-ViewModel design pattern, we make frequent use of the INotifyPropertyChanged interface. It is the Interface that defines the necessary methods to Notify the UI when a Property has Changed. As you can see, its a very well-named Interface. 🙂 I’ve collected a few variations of the implementation and…