C# how to implement a Control in WPF?

To write a program in C# that implements a control (Control) WPF in separate dynamic libraries.
The element showing the status. Status displays the color. Properties: form element current status.
July 2nd 19 at 17:23
3 answers
July 2nd 19 at 17:25
To write a control WPF as a library for C# , you must run Visual Studio (2015), select menu File => Create => Project. In the window that appears, go to Templates => Visual C# => Windows => desktop app. In the list of templates to locate and select Library of custom WPF controls. Enter the project name and click Ok. Write some code :-)

As for writing code, then perhaps the following links will help you:
Programming guide in C#
+ Classes and structures
+ Properties

Information on working with the Windows Presentation Foundation can be found at the following link:
July 2nd 19 at 17:27
Also, as in WinForms, using a UserControl, the "Project" - "Add item" - "a Custom WPF control".
And for certain dynamic libraries you need to create a project of type "class Library", it also add custom item, then built DLL and put in bin\Debug folder of the application where it is needed, and add the link.
July 2nd 19 at 17:29
What elemet to be and its properties can someone help with this?
You have already implemented the item itself? Added it to the form, it is displayed on it?
Properties are implemented in the class of Your element as normal property in C# (get/set), just like an attribute which you need to add to make them visible to "properties", on this subject, Google or read. - mazie.Towne commented on July 2nd 19 at 17:32
: well button, for instance added, then properties can't understand - Timmothy.Rice commented on July 2nd 19 at 17:35
And you try! Where you understand if you can't even explain what you don't understand?
Brain train, and it's not an insult, you have not really developed an analytical type of thinking, but fortunately, it's fixable, so don't be offended but first try to explain in detail to me or I at all desire can not help can. - mazie.Towne commented on July 2nd 19 at 17:38
DependencyProperty help - Josef commented on July 2nd 19 at 17:41
bfy.tw/8jFC - Josef commented on July 2nd 19 at 17:44

Find more questions by tags WPFC#