I have a RadSplitContainer rsc containing RadPaneGroup rpg containing RadPane rp1.
rp1 contains nested StackPanels which contain various controls - labels, txtboxes etc.
That is all in xaml and all works/displays, no problem.
However, in code, I do something like this (add new RadPane with controls):
Label lbl = new Label();
lbl.Name = "lbl1";
lbl.Content = "Some Label";
StackPanel sp = new StackPanel();
Grid grd = new Grid();
RadPane rp2 = new RadPane();
rp2.Content = grd;
then I add the rp2 to the RadPaneGroup rpg
The panel is displayed in the right place, right order etc etc.
My label control is visible on rp1 NOT rp2 but I added it to rp2.Content
The controls (in my full version) are ending up in the wrong RadPane (rp1) and NOT in the pane I am adding them to (rp2) in code!
What might I be doing wrong?