This question is locked. New answers and comments are not allowed.
After update version to 2011.2.920.1040 from 2011.1.xx.xx, i got error:
+ $exception {System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Docking.ToolWindow.UpdatePositionHelper(PositionHelper helper)
at Telerik.Windows.Controls.WindowBase.CheckRestrictedArea()
at Telerik.Windows.Controls.WindowBase.OnRootVisualSizeChanged()
at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IWindowDragAware.RootVisualSizeChanged()
at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.Initialize()
at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.OnPresenterLoadedForFirstTime(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)} System.Exception {System.NullReferenceException}
before i add on dock panel windows:
and if i load dock layout from XML
on exit function i have error
+ $exception {System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Docking.ToolWindow.UpdatePositionHelper(PositionHelper helper)
at Telerik.Windows.Controls.WindowBase.CheckRestrictedArea()
at Telerik.Windows.Controls.WindowBase.OnRootVisualSizeChanged()
at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IWindowDragAware.RootVisualSizeChanged()
at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.Initialize()
at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.OnPresenterLoadedForFirstTime(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)} System.Exception {System.NullReferenceException}
before i add on dock panel windows:
RadSplitContainer rsc =
new
RadSplitContainer();
rsc.InitialPosition = DockState.FloatingDockable;
RadPaneGroup rpg =
new
RadPaneGroup();
rsc.Items.Add(rpg);
RadPane rp =
new
RadPane();
rpg.Items.Add(rp);
rp.ContextMenuTemplate =
null
;
rp.Title = title;
rp.Header = title;
rp.Content = content;
RadDocking.SetSerializationTag(rp, header);
RadDocking.SetFloatingSize(rsc,
new
Size { Width = 400, Height = 400 });
dockPanel.Items.Add(rsc);
and if i load dock layout from XML
using
(Stream stream =
new
MemoryStream(Encoding.UTF8.GetBytes(profile)))
{
stream.Seek(0, SeekOrigin.Begin);
dockPanel.LoadLayout(stream);
}