This question is locked. New answers and comments are not allowed.
after upgrading from Q3 2011 to Q3 2012 the following code doesn't work anymore and i cannot figure out why.
now there is no visible content in this pane.
hoping for an answer...
protected virtual void AddPane(RadPane pane)
{
var dockState = GetDockState(pane);
RadSplitContainer splitContainer;
if (dockState == null || dockState == DockState.FloatingDockable || dockState == DockState.FloatingOnly)
{
splitContainer = _dock.DocumentHost as RadSplitContainer;
if (splitContainer == null)
{
splitContainer = _factory.CreateSplitContainer();
splitContainer.SetValue(View.IsGeneratedProperty, true);
_dock.DocumentHost = splitContainer;
}
}
else
{
splitContainer = _dock.Items.OfType<
RadSplitContainer
>().FirstOrDefault(
container => container.GetValue(RadDocking.DockStateProperty) as DockState? == dockState);
if (splitContainer == null)
{
splitContainer = _factory.CreateSplitContainer();
splitContainer.InitialPosition = dockState.Value;
splitContainer.SetValue(View.IsGeneratedProperty, true);
_dock.Items.Add(splitContainer);
}
}
var paneGroup = splitContainer.Items.OfType<
RadPaneGroup
>().FirstOrDefault();
if (paneGroup == null)
{
paneGroup = _factory.CreatePaneGroup();
paneGroup.IsContentPreserved = true;
paneGroup.SetValue(View.IsGeneratedProperty, true);
paneGroup.SelectedItemRemoveBehaviour = SelectedItemRemoveBehaviour.SelectNone;
splitContainer.Items.Add(paneGroup);
}
paneGroup.AddItem(pane, DockPosition.Center);
}
now there is no visible content in this pane.
hoping for an answer...