Hi, as im new i guess i should start off with a brief introduction, i'm a 19 year old software development student and part time programmer.


I would like to know how i would add WPF control in vb.net code. The WPF control class is different to the visual basic one and therefore; The code to add a vb control does not work ( example below ).


Code:
Dim d As New Button
Me.Controls.Add(d)
Basically what would the equivalent code be for a wpf control.

Thanks in advance!