Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
To write a WPF control as a library in C# , you need to launch Visual Studio (2015), select the menu File => New => Project . In the window that appears, go to Templates => Visual C# => Windows => Classic Application . In the list of templates, find and select WPF Custom Control Library . Enter the name of the project and click on the Ok button . Write some code :-)
As for writing code, maybe the following links will help you:
C# Programming Guide
+ Classes and Structures
+ Properties
Information on working with Windows Presentation Foundation can be found at the following link:
https://msdn.microsoft.com/en-us/library/ms754130(...
Also, as in WinForms, using UserControl, "Project" - "Add Item" - "WPF User Control".
And for a separate dynamic library, you need to create a project of the "Class Library" type, also add a custom element to it, then put the built DLL into the bin\Debug folder of the application where it is needed, and add a link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question