Using Styles from Class Library RRS feed

  • Question

  • Hi,

    I searched forums and I didn't find any info how to solve my problem.

    I want to implement Class Library which holds my custom controls.

    I created Silverlight Control Library,
    added my class,
    added generic.xaml to Themes,
    added myclass.xaml to Themes and added necessary entry to generic.xaml

    Everything works, the Template is applied to my control. Now, what I need to do is to replace element style that is defined in myclass.xaml in code-behind. In Silverlight application I will use Application.Resources... but how to get to the resource in Class Library ? I tryed to use XamlReader but I get error that controls:MyClass type cannot be created (I have both styles and template for my control in the same file).

    Can someone help with that ?


    Monday, October 11, 2010 12:31 PM


  • Does this thread help with your issue?


    Monday, October 11, 2010 1:26 PM