Hello,
I am getting the same error as this post but I am using the RadDock correctly as far as I can tell... The error occurs when the user preferences are to have both the right and bottom panes unpinned and we apply those preferences to the page.
My xaml is as follows:
Am I doing somethign incorrectly, or is this a bug? I am currently using version 2011.2.920.1040.
I am getting the same error as this post but I am using the RadDock correctly as far as I can tell... The error occurs when the user preferences are to have both the right and bottom panes unpinned and we apply those preferences to the page.
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 SolutionQ.Eclipse.Silverlight.Content.Timesheet.Tabs.Timesheet.SetDockingPreference()
at SolutionQ.Eclipse.Silverlight.Content.Timesheet.Tabs.Timesheet.TimesheetLoaded(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)
My xaml is as follows:
<
telerik:RadDocking
x:Name
=
"radDocking"
PaneStateChange
=
"RadDockingPaneStateChange"
Grid.Row
=
"0"
Grid.Column
=
"0"
telerik:StyleManager.Theme
=
"Windows7"
Background
=
"Transparent"
BorderBrush
=
"Transparent"
BorderThickness
=
"0"
Padding
=
"0"
LayoutChangeEnded
=
"RadDockingLayoutChangeEnded"
telerik:RadDocking.SerializationTag
=
"radDocking"
>
<!-- Main Content -->
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
x:Name
=
"splitter"
telerik:RadDocking.SerializationTag
=
"splitter"
>
<
telerik:RadPaneGroup
x:Name
=
"RadPaneGroupMain"
DocumentHostTemplate
=
"{StaticResource style_TablessDocumentHostTemplate}"
telerik:RadDocking.SerializationTag
=
"RadPaneGroupMain"
>
<
telerik:RadPane
x:Name
=
"PaneMain"
CanUserClose
=
"False"
CanFloat
=
"False"
CanUserPin
=
"False"
telerik:RadDocking.SerializationTag
=
"PaneMain"
>
<!-- Some stuff -->
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<!-- Panels (Bottom) -->
<
telerik:RadSplitContainer
x:Name
=
"BottomContainer"
InitialPosition
=
"DockedBottom"
telerik:RadDocking.SerializationTag
=
"BottomContainer"
>
<
telerik:RadPaneGroup
x:Name
=
"grpBottom"
telerik:RadDocking.SerializationTag
=
"grpBottom"
>
<
telerik:RadPane
x:Name
=
"panePendingChanges"
Title
=
"x"
TitleTemplate
=
"{StaticResource dt_TimesheetPendingChangesHeaderTitle}"
Header
=
"y"
HeaderTemplate
=
"{StaticResource dt_TimesheetPendingChangesHeaderTitle}"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
ContextMenuTemplate
=
"{x:Null}"
telerik:RadDocking.SerializationTag
=
"panePendingChanges"
>
<
Controls:PendingChanges
x:Name
=
"pendingChanges"
></
Controls:PendingChanges
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<!-- Panels (Right) -->
<
telerik:RadSplitContainer
x:Name
=
"RightContainer"
InitialPosition
=
"DockedRight"
telerik:RadDocking.SerializationTag
=
"RightContainer"
>
<
telerik:RadPaneGroup
x:Name
=
"grpRight"
telerik:RadDocking.SerializationTag
=
"grpRight"
>
<
telerik:RadPane
x:Name
=
"paneNATasks"
Title
=
"x"
TitleTemplate
=
"{StaticResource dt_TimesheetNATasksTitle}"
Header
=
"y"
HeaderTemplate
=
"{StaticResource dt_TimesheetNATasksHeader}"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
ContextMenuTemplate
=
"{x:Null}"
telerik:RadDocking.SerializationTag
=
"paneNATasks"
>
<
Controls:OutsideDateTasks
x:Name
=
"outsideDateTasks"
></
Controls:OutsideDateTasks
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
Am I doing somethign incorrectly, or is this a bug? I am currently using version 2011.2.920.1040.