I have found a class of Label which adds the functionality of dragging and resizing the Label to it. And I don’t know how I can dynamically (like by pressing a button which says “create a label”) create an object of that class and add it to the Canvas of my WPF application.
I also want to specify some of it’s properties like width, height, name, content etc. before/after adding it to the Canvas.
How is it done the proper way ?
About getting element by name after creating you can read here:
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.findname.aspx