we can add button on chart, like:
var newControl = new System.Windows.Controls.TextBox { Name = "asd", Text ="WPF textbox", Width = 100, Background = Brushes.Green};
myGrid.Children.Add(newControl);
System.Windows.Controls.Grid.SetColumn((UIElement) newControl, 0);
this.UserControlCollection.Add(myGrid);
however, what steps need to be done (i am completely new to XAML field) to add WPF control instead of simple textbox, that has it's own .xaml file?
so, it is like :
var newControl = new CustomControls.CustomBox()....
which has it's own xaml.
Comment