Binding the WPF WebBrowser Source Property

In an MVVM application I am currently creating, I had the need to embed the WPF WebBrowser control and quickly discovered that the Source Property is not a dependancy object, and so cannot be bound. I quickly search around on StackOverflow.com and found a neat solution in c#; http://stackoverflow.com/a/265648/1305169 The VB Version of which is; [...]

WPF – Programmatically Adding Buttons the MVVM Way

I recently came across a requirement to Programmatically Add Buttons to a WPF View in my MVVM based app. Obviously this is not entirely trivial as each Button must contain the correct Bindings to interact with the underlying ViewModel. The way I tackled this was to use an ItemsControl, with a Canvas Control in the [...]

By |2013-03-26T17:46:00+00:00March 26th, 2013|.Net Framework, Binding, MVVM, VB.net, WPF|0 Comments

WPF MVVM ComboBox Binding to XML Data.

Once again, while browsing StackOverflow.com, I came across a question from a user who needed to fix their ComboBox Binding. The user in question was Binding XML data in Key/Value pairs to the combo box, displaying the Key and wanted to retrieve the Value. This was achieved using the following example;My XML Test Data was [...]

By |2013-01-24T17:15:00+00:00January 24th, 2013|Binding, MVVM, VB.net, WPF, XML|0 Comments