Dear Support!
I am using RadControls_for_WPF_2011_3_1116_Dev.
When I drag the Pane, the Compass remain visible, or sometimes I am getting a NullReferenceException (refer attachment).
Please let me know how to resolve the issue.
MainWindow.xaml
MainWindow.xaml.cs
InternalDocking.xaml
InternalDocking.xaml.cs
output when Compass remain visible:
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='ToolWindow' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
'WpfApplication15.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WpfApplication15.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='DockElementsPopup' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='DockElementsPopup' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='ToolWindow' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Controls.Docking.dll
The thread '<No Name>' (0x195c) has exited with code 0 (0x0).
or the throwed exception:
System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Controls.Docking
StackTrace:
at Telerik.Windows.Controls.Docking.ToolWindow.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\ToolWindow.cs:line 493
at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1237
at Telerik.Windows.Controls.InternalWindow.DragBehavior.FinishDrag(Point globalMousePosition, Boolean isCancel) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\DragBehavior.cs:line 104
at Telerik.Windows.Controls.InternalWindow.DragBehavior.OnElementMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\DragBehavior.cs:line 126
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WpfApplication15.App.Main() in C:\Users\knyisztor\Documents\Megosztott\WpfApplication15\WpfApplication15\obj\x86\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
I am using RadControls_for_WPF_2011_3_1116_Dev.
When I drag the Pane, the Compass remain visible, or sometimes I am getting a NullReferenceException (refer attachment).
Please let me know how to resolve the issue.
MainWindow.xaml
<Window x:Class="WpfApplication15.MainWindow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" xmlns:WpfApplication15="clr-namespace:WpfApplication15" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <WpfApplication15:InternalDocking x:Key="InternalDocking"/> </Window.Resources> <Grid> <Telerik:RadDocking x:Uid="Docking" Name="Docking" AllowUnsafeMode="True" Telerik:RadDocking.SerializationTag="Sz0"> <Telerik:RadDocking.DocumentHost > <Telerik:RadSplitContainer x:Uid="Telerik:RadSplitContainer_1" Orientation="Horizontal" Telerik:RadDocking.SerializationTag="Sz1"> <Telerik:RadPaneGroup Name="MainGroup" Telerik:RadDocking.SerializationTag="Sz2"> <Telerik:RadPane Content="{StaticResource InternalDocking}" Header="Ellenőrző adatok" Telerik:RadDocking.SerializationTag="Sz5"/> <Telerik:RadPane Content="2" Header="Fejléc" Telerik:RadDocking.SerializationTag="Sz3"/> <Telerik:RadPane Content="3" Header="Alapadatok" Telerik:RadDocking.SerializationTag="Sz4"/> </Telerik:RadPaneGroup> </Telerik:RadSplitContainer> </Telerik:RadDocking.DocumentHost> </Telerik:RadDocking> </Grid></Window>MainWindow.xaml.cs
namespace WpfApplication15{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } }}InternalDocking.xaml
<Telerik:RadDocking x:Class="WpfApplication15.InternalDocking" xmlns:Telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" AllowUnsafeMode="True" Telerik:RadDocking.SerializationTag="QA1"> <Telerik:RadDocking.DocumentHost > <Telerik:RadSplitContainer x:Uid="Telerik:RadSplitContainer_1" Orientation="Horizontal" Telerik:RadDocking.SerializationTag="QA2"> <Telerik:RadPaneGroup Name="MainGroup" Telerik:RadDocking.SerializationTag="Q31"> <Telerik:RadPane Content="dragbug1" Header="Kiskacsa" Telerik:RadDocking.SerializationTag="QA4" /> <Telerik:RadPane Content="dragbug2" Header="Fürdik" Telerik:RadDocking.SerializationTag="Q51" /> <Telerik:RadPane Content="dragbug3" Header="Fekete tóban" Telerik:RadDocking.SerializationTag="QA6" /> </Telerik:RadPaneGroup> </Telerik:RadSplitContainer> </Telerik:RadDocking.DocumentHost></Telerik:RadDocking>InternalDocking.xaml.cs
namespace WpfApplication15{ /// <summary> /// Interaction logic for InternalDocking.xaml /// </summary> public partial class InternalDocking { public InternalDocking() { InitializeComponent(); } }}output when Compass remain visible:
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='ToolWindow' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
'WpfApplication15.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WpfApplication15.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='DockElementsPopup' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='DockElementsPopup' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='ToolWindow' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')
A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Controls.Docking.dll
The thread '<No Name>' (0x195c) has exited with code 0 (0x0).
or the throwed exception:
System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Controls.Docking
StackTrace:
at Telerik.Windows.Controls.Docking.ToolWindow.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\ToolWindow.cs:line 493
at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1237
at Telerik.Windows.Controls.InternalWindow.DragBehavior.FinishDrag(Point globalMousePosition, Boolean isCancel) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\DragBehavior.cs:line 104
at Telerik.Windows.Controls.InternalWindow.DragBehavior.OnElementMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\DragBehavior.cs:line 126
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WpfApplication15.App.Main() in C:\Users\knyisztor\Documents\Megosztott\WpfApplication15\WpfApplication15\obj\x86\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: