This project is read-only.

WindowSmartPartInfo: Problem with WpfStyle

Jul 12, 2007 at 12:15 PM
Edited Jul 12, 2007 at 12:16 PM

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
Jul 15, 2007 at 5: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.