Moving WPF control to class library

I recently made my first WPF control. It’s just a simple control to show media files. After experimenting with it and seeing all was ok I moved the files to the main project where it would reside in a class library project.

It stopped building with the exception: ‘Library project file cannot specify ApplicationDefinition element’.

To anyone with 15 minutes of WPF experience this does not say a lot. Even after searching the web I couldn’t really understand what was going on but this thread did set me on the right track. You need to set the build action of your WPF control to ‘Page’.

wpfusercontrol

Tags:

117 Responses to “Moving WPF control to class library”

  1. RALPH says:

    johns hopkins lung cancer

    Buy_drugs without prescription…

  2. phyllis tucker says:

    hairstyles

    I think this is one of the most significant info for me. And i am glad reading your article. But want to remark on few general things, The website style is great, the articles is really nice : D. Good job, cheers…

  3. JACK says:


    GENERIC PHARMACY : -==== Respiratory Cure ====-

    Order Good Generic Drugs Today!…

Leave a Reply