I need to use a custom style for a XamDialogWindow so that it fits in with the look of the rest of the application.
I've tried both copying (and renaming) the generic.xaml file that defines the style and creating a copy using Expression Blend and in both cases I get errors:
> The attachable property 'ToBounds' was not found in type 'Clip'.
> The property 'ToBounds' does not exist on the type 'Grid' in the XML namespace 'schemas.infragistics.com/xaml'.
> The tag 'DialogRootPanel' does not exist in XML namespace 'schemas.infragistics.com/.../primitives'.
> The tag 'XamDialogWindowCommandSource' does not exist in XML namespace 'schemas.infragistics.com/xaml'.
If these tags aren't visible outside the Infragistics dll, how do I restyle the dialog window?
The problem was apparently caused by the project (one of 30 odd in our solution) I tried to create the style in not having the XamDialogWindow assembly referenced correctly.
If I create the style in a different project that does reference the assembly it all works as expected.
So the solution is to either define the style in a different project of make sure that the project I do use has the correct assembly references.