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?
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?