Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a WPF library in Visual Studio Express

I am trying to make my code more reusable by placing commonly recurring utility classes and user controls into a packaged library. The IDE is making this difficult, as so far, I have found that it always defaults to Windows Forms user controls and disabling my ability to create xaml files etc from the 'Add a New Item' dialog.

Is it possible to create a library for classes and controls with the aid of the IDE environment (I'm using VS2008 Express)?

If so, what do I need to change to get the preferred behaviour out of the IDE when working on libraries for WPF? Is it just a case of selecting the right combination of references, or do I need to edit the project file? I'm at a bit of a loss on this one.

like image 238
Ian Gilham Avatar asked May 04 '09 16:05

Ian Gilham


People also ask

Is WPF obsolete?

It was in 2006 that Windows Presentation Foundation (WPF) was released with . NET framework 3.0. Over the years it got improved and it is still now in the market in 2021.

What is a WPF library?

Windows Presentation Foundation (or WPF) is a graphical subsystem by Microsoft for rendering user interfaces in Windows-based applications with visually stunning user experiences.

Is WPF still relevant 2022?

“WPF would be dead in 2022 because Microsoft doesn't need to be promoting non-mobile and non-cloud technology. But WPF might be alive in that sense if it's the best solution for fulfilling specific customer needs today. Therefore, having a hefty desktop application needs to run on Windows 7 PCs with IE 8.


1 Answers

Here are detailed step-by-step instructions on how to create a template for that.

like image 155
Alan Mendelevich Avatar answered Oct 14 '22 11:10

Alan Mendelevich