This is a migrated thread and some comments may be shown as answers.

Issue loading a layout with Pinned Panes

1 Answer 18 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 09 Nov 2011, 10:01 PM
Hello,

I'm having a problem loading a saved layout with a pinned pane. If I save a layout with a pinned pane, move something around, and then load that layout back in, it loads up correctly. However, if I save a layout with a pinned pane, then close and restart the application and load the layout on startup, I get the following null reference exception:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.RadPane.OnIsPinnedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.Docking.DockingLayoutFactory.ReadProperty(Dictionary`2 attributes, DependencyObject d, DependencyProperty property, String propertyName, Converter`2 parser)
   at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadPane(XmlReader reader)
   at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadPaneGroup(XmlReader reader)
   at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadSplitItem(XmlReader reader)
   at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadSplitContainer(XmlReader reader)
   at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadDocking(XmlReader reader)
   at Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source, Boolean raiseEventsIfNoSerializationTag)
   at Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source)
   at MainPage.LoadLayout()

I've tried loading the layout in the user control's constructor immediately after the InitializeComponent() method call, and in the user control's Loaded event handler. The goal is to be able to load the user's layout on startup. Is this an issue in your controls, or am I doing something incorrectly?

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 11 Nov 2011, 12:47 PM
Hi Ryan,

We fixed similar issue into one of the latest internal builds. Could you please test it again with the latest internal build and post the result here?

Kind regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Docking
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or