How to reference new C# class in XAML


  • Hi,

    I am using Visual Studio Express to create a Phone 7 application. I created a new c# class inside the project and now I want to just reference to it to add it as a Resource in the Main.xaml page.

    So I am not sure how to reference it.

    It seems to me that I would have to add that class to the namespace declarations but I can't find any documentation that talks about how to reference a new class created inside the project. The documentation only talks about how to add external classes packed in a *.dll.

    Can someone please point me to documentation that tells you how to reference a new created local class or how to do it?





    • Moved by CoolDadTxMVP Wednesday, June 01, 2011 2:08 PM WPF related (From:Visual C# IDE)
    Tuesday, May 31, 2011 10:27 PM


All replies