WindowSmartPartInfo: Problem with WpfStyle

Jul 12, 2007 at 11:15 AM
Edited Jul 12, 2007 at 11:16 AM
Hi

I have stumbled upon a problem with the WpfStyle property in the WindowSmartPartInfo class.

I am trying to set the WindowStyle via a WpfStyle, but it seems that a DependencyProperty that is set explicitly (as is done with eg WindowStyle in ApplyTo) is not set using a WpfStyle.

I have solved the problem in my project by using Nullable<> types for the WindowSmartPartInfo properties and then only apply them to the window instance if explicitly set.

Regards Lau
Coordinator
Jul 15, 2007 at 4:13 AM
Thanks Lau. I've just checked in a fix for this issue (change set 8156). The Window's dependency properties are now only set if the caller explicitly sets values against the WindowSmartPartInfo.

Regards,
Kent