The key to this approach in setting the ListItemBackground when a listitem is selected is to use the Simple Styles in WPF now. This is really cool as you can just set part of the style and it works. WOW.
The TPLHelper library is awesome. I use it frequently in many apps to handle threading stuff for me.
For instance, you can set it up like so to fire up a task and then handle finish tasks and even an exception in a task. The following example shows calling a method called LoadDictionaryItems on a seperate thread.
So, the Id field was not found. Thats because its really the ID field. I wish they would make it non case sensitive.
I was working on some data entry views today and needed to create fields to represent a database tables columns. So, i whipped out this little SQL script:
I have a WPF app that puts usercontrols into a wrap panel. Works perfect. Since theres close to a 1000 items its hard to find a particular item. The panel looks like so:
I needed a simple dialog box in a recent application and heres what i came up with. Took seconds to create with VS 2010 RC 0.
I am working with a team on a large WPF and Silverlight application. The application is built using .Net 4, VS 2010 RC and more. We are using the ViewModel approach that Josh Smith talks about here: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
Another cool VS 2010 feature! Open the data window and create a data connection like you would in VS 2008. Then drag and drop an item onto a WPF form and viola, you now have a layout with a nice bound data grid. Add one or so lines of code and boom a working form.
This is a really nice way to get something going in WPF and making our life much easier.