Hi Kemal,
Thank you for contacting Syncfusion Support.
Query 1: Document inside ribbon window wont get focus. Textbox control inside document pane will not type anyting since ribbon window gets all focus. Is there any workaround for this issue?
We are analyzed your reported issue from our side. But we were unable to reproduce the reported issue from our side. We can edit the text in TextBox control which is located in RibbonWindow control. So could you please provide more information like issue reproducing sample, it will help us to provide appropriate solution. Please find the sample with which we checked from the following location.
Sample:RibbonWindowTesting
In your reported query you mentioned that setting e.handled as true to avoid null reference exception. Could you please provide more details about this statement like in which event you have set e.handled as true, it will help to provide the appropriate solution for null reference exception on Ribbon controls.
Regards,
Rajkumar G.
I've just had the same issue. Backtracking I've noticed adding a RibbonSeparator between RibbonBars leads to my null reference on the keytips.
From your example... try adding the RibbonSeparator as shown below.
Exception Detail...
System.NullReferenceException was unhandled
Message: An unhandled exception of type 'System.NullReferenceException' occurred in Syncfusion.Tools.Wpf.dll
Additional information: Object reference not set to an instance of an object.
Call Stack...
> Syncfusion.Tools.Wpf.dll!Syncfusion.Windows.Tools.Controls.Ribbon.FindKeyTips(ref System.Collections.Generic.Dictionary<string, Syncfusion.Windows.Tools.Controls.KeyTip> keyTips, System.Windows.UIElement root) Unknown
Syncfusion.Tools.Wpf.dll!Syncfusion.Windows.Tools.Controls.Ribbon.FindKeyTips(ref System.Collections.Generic.Dictionary<string, Syncfusion.Windows.Tools.Controls.KeyTip> keyTips, System.Windows.UIElement root) Unknown
Syncfusion.Tools.Wpf.dll!Syncfusion.Windows.Tools.Controls.Ribbon.FindKeyTips(ref System.Collections.Generic.Dictionary<string, Syncfusion.Windows.Tools.Controls.KeyTip> keyTips, System.Windows.UIElement root) Unknown
Syncfusion.Tools.Wpf.dll!Syncfusion.Windows.Tools.Controls.Ribbon.InitializeKeyTips() Unknown
Syncfusion.Tools.Wpf.dll!Syncfusion.Windows.Tools.Controls.Ribbon.m_ribbonWindow_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) Unknown
PresentationCore.dll!System.Windows.Input.KeyEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) Unknown
PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) Unknown
PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) Unknown
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) Unknown
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) Unknown
PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args) Unknown
PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted) Unknown
PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() Unknown
PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) Unknown
PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport) Unknown
PresentationCore.dll!System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(System.IntPtr hwnd, System.Windows.Input.InputMode mode, int timestamp, System.Windows.Input.RawKeyboardActions actions, int scanCode, bool isExtendedKey, bool isSystemKey, int virtualKey) Unknown
PresentationCore.dll!System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(ref System.Windows.Interop.MSG msg, ref bool handled) Unknown
PresentationCore.dll!System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers) Unknown
PresentationCore.dll!System.Windows.Interop.HwndSource.OnPreprocessMessage(object param) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) Unknown
PresentationCore.dll!System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(ref System.Windows.Interop.MSG msg, ref bool handled) Unknown
PresentationCore.dll!System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(ref System.Windows.Interop.MSG msg, ref bool handled) Unknown
WindowsBase.dll!System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(ref System.Windows.Interop.MSG msg) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) Unknown
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown
PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) Unknown
PresentationFramework.dll!System.Windows.Application.Run() Unknown
RibbonWindowTesting.exe!RibbonWindowTesting.App.Main() Unknown
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) Unknown
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() Unknown