I am adding UserControls to a RadTabControl at runtime thus:
var tabItem = new RadTabItem();
tabItem.Header = somestring
tabItem.Content = new RtiDetailViewer();
ImagesTabControl.Items.Add(tabItem);
Where RtiDetailViewer is a UserControl.
However, I have been unable to find a way to ensure that the added UserControl fills the available space, any help would be appreciated.
var tabItem = new RadTabItem();
tabItem.Header = somestring
tabItem.Content = new RtiDetailViewer();
ImagesTabControl.Items.Add(tabItem);
Where RtiDetailViewer is a UserControl.
However, I have been unable to find a way to ensure that the added UserControl fills the available space, any help would be appreciated.