Friday, July 11, 2008

josh smith's wpf binding article in this month's msdn magazine

http://msdn.microsoft.com/en-us/magazine/cc700358.aspx

a couple of things new to me:

- the way he uses IsSynchronizedWithCurrentItem and nested, hierarchical bindings like {Binding Path=CurrentItem.Orders.CurrentItem.OrderDetails}

- the capabilities of the .NET 3.5 validators (implementing validation logic in code using System.ComponentModel.IDataErrorInfo)

also check out how smoothly he binds an object hierarchy to a treeview, good stuff--

Thursday, July 10, 2008

error adding service reference to silverlight 2 app

if you run into problems adding a service reference to a sl2b2 app, it’s likely due to a sl2b2 install bug that manifests itself if you installed with certain pre-conditions. to fix it:

-----
(from http://silverlight.net/forums/t/17500.aspx)

First check your Silverlight Tools for VS 2008 install size on Add/Remove Programs window. If it is 1.14 MB, then you need to do the following:

1) Uninstall your Silverlight Tools for VS 2008,

2) Remove (delete) the following dll C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Microsoft.VisualStudio.ServicesProxy.dll

3) Re-Install Silverlight Tools for VS 2008.

-----

Sunday, June 8, 2008

silverlight 2 beta 2

installer is here: http://www.microsoft.com/downloads/details.aspx?FamilyId=50A9EC01-267B-4521-B7D7-C0DBA8866434&displaylang=en

there is no problem installing this on your normal dev machine, but note that i had to manually uninstall KB949325 (in Vista it's listed under Program and Features > Installed Updates) before i could get beta 2 installed.

a good summary of changes is here: http://adoguy.com/2008/06/06/What_s_Changed_in_Silverlight_2_Beta_2.aspx

and fuller lists of breaking changes (there are lots of them!) are here: http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx and http://blogs.msdn.com/silverlight_sdk/attachment/8574227.ashx.

the release version is expected “end of summer”, so assuming beta 2 is as solid as beta 1 was, this is the version that the classroom will first go live with--

Thursday, May 22, 2008

code snippet for INotifyPropertyChanged

import this snippet and use “propnp” to implement a property in an object that implements INotifyPropertyChanged--

http://www.russellgreenspan.com/software/code/propnp.zip

Tuesday, May 20, 2008

wpf data binding one step at a time

good overview and step-by-step introduction to wpf-style data binding:

http://www.codeproject.com/KB/WPF/MovingTowardWpfBinding.aspx

more good wpf binding info

differences between Source, RelativeSource, and ElementName (the latter 2 are WPF-only) mark-up extensions:

http://www.wpfwiki.com/WPF%20Q5.3.ashx