Hi,
We are interested in getting your DockingControl package for our own development. So I want to try to do my own UI (based on your Demo1) to see how flexible and easy to use is the DockingControl.
And I ran into the following error at loading time:
System.NullReferenceException: Object reference not set to an instance of an object.
at JaStDev.DockingControl.Controls.DragReceiver..()
at JaStDev.DockingControl.Controls.DragReceiver...ctor(DragReceiver aOwner)
at JaStDev.DockingControl.Controls.DragReceiver..ctor(Boolean aWithWindows)
at JaStDev.DockingControl.Controls.DockingControl.
(Object , RoutedEventArgs )
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.FrameworkElement.OnLoaded(RoutedEventArgs args)
at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
Here is the xaml I used:
<d:DockingControl x:Name="dockingControl" Background="Transparent">
<d:ToolFrame Name="orgUnit" Dock="Left" Location="Visible" IsDropTarget="True" TrueFloating="True">
<d:ToolFrameItem x:Name="orgUnitToolItem" Source="OrgUnitTool.xaml" Title="Organization Unit" />
</d:ToolFrame>
<d:ToolFrame Name="settings" Dock="Left" Location="Visible" RelativeTo="orgUnit" TrueFloating="True" IsDropTarget="True">
<d:ToolFrameItem x:Name="settingsItem" Source="OrgUnitSettingsTool.xaml" Title="Settings" />
</d:ToolFrame>
<d:ToolFrame Name="body" HasHeader="False"
TabStripPlacement="Top"
CanClose="False"
TabVisibility="Visible"
IsDropTarget="False"
CanPersist="False" TrueFloating="True">
<d:ToolFrameItem Source="Alarm.xaml" Title="Alarm" IsDocument="False" />
</d:ToolFrame>
</d:DockingControl>
When I comment out this portion of xaml, my WPF window loads without a problem.
The pages define here for each ToolFrame don't do anything. They are just pages for now as I want to test the floating/docking effect.
What am I missing?
Thank you for your help.
Frankidoze