Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
How can I create a custom style for my XamDialogWindow?
posted

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?

One of the changes I need to make is to increase the border radius of the inner edge - this appears to be defined by the 'DialogRootPanel' definition.
The help for the XamDialogWindow style points just indicates that the main window style is configurable.
Parents
No Data
Reply
  • 845
    Verified Answer
    Offline posted

    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.

Children
No Data