This question is locked. New answers and comments are not allowed.
Hello,
I think this is a simple one, but still having problems. I am creating the RadPane, and RadPaneGroup objects dynamically, and adding them to the XAML defined RadDocking and RadSplitter controls. My RadPane appears, but I can't seem to get the background to set.
I'm certainly missing something obvious but its is eluding me at present.
var brush = new SolidColorBrush() { Color = Colors.Purple };
RadPane pane = new RadPane();
pane.CanFloat = true;
pane.Header = "Software";
pane.MakeFloatingDockable();
pane.Background = brush;
var DashboardPaneGroup= new RadPaneGroup();
DashboardSplit.Items.Add(DashboardPaneGroup);
DashboardPaneGroup.Items.Add(pane);
Also, how could I specify the starting position of the dynamically added panes? I was doing it like this:
DashboardPaneGroup.AddItem(pane1, DockPosition.Left);
But read a post indicating that was not correct.
Thanks for your help,
Scott
I think this is a simple one, but still having problems. I am creating the RadPane, and RadPaneGroup objects dynamically, and adding them to the XAML defined RadDocking and RadSplitter controls. My RadPane appears, but I can't seem to get the background to set.
I'm certainly missing something obvious but its is eluding me at present.
var brush = new SolidColorBrush() { Color = Colors.Purple };
RadPane pane = new RadPane();
pane.CanFloat = true;
pane.Header = "Software";
pane.MakeFloatingDockable();
pane.Background = brush;
var DashboardPaneGroup= new RadPaneGroup();
DashboardSplit.Items.Add(DashboardPaneGroup);
DashboardPaneGroup.Items.Add(pane);
Also, how could I specify the starting position of the dynamically added panes? I was doing it like this:
DashboardPaneGroup.AddItem(pane1, DockPosition.Left);
But read a post indicating that was not correct.
Thanks for your help,
Scott