Unable to use SfTextBoxExt inside ElementHost

Hello,
I'm working on a winform application and slowly converting it to WPF. I'm trying to use a SFTextBoxExt but whenever I put it inside an ElementHost it crashes. Here is the stack trace
NameValueType
StackTrace" at Syncfusion.Windows.Controls.Input.SfTextBoxExt.OnApplyTemplate()\r\n at System.Windows.FrameworkElement.ApplyTemplate()\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at System.Windows.Controls.Grid.MeasureOverride(Size constraint)\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)\r\n at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at System.Windows.Controls.Border.MeasureOverride(Size constraint)\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at System.Windows.Controls.Control.MeasureOverride(Size constraint)\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)\r\n at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n at System.Windows.UIElement.Measure(Size availableSize)\r\n at System.Windows.Interop.HwndSource.SetLayoutSize()\r\n at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)\r\n at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)\r\n at System.Windows.Forms.Integration.ElementHost.b__54_0()\r\n at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)\r\n at System.Windows.Threading.Dispatcher.Invoke(Action callback)\r\n at System.Windows.Forms.Integration.ElementHost.OnHandleCreated(EventArgs e)\r\n at System.Windows.Forms.Control.WmCreate(Message& m)\r\n at System.Windows.Forms.Control.WndProc(Message& m)\r\n at System.Windows.Forms.Integration.ElementHost.WndProc(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"string

3 Replies

MK Muneesh Kumar G Syncfusion Team August 6, 2018 11:37 AM UTC

Hi Andy, 
  
Greetings from Syncfusion. We have confirmed that the issue with “Exception throws while set the SfTextBoxExt inside ElementHost” is a defect and we have logged a defect report. the fix will be available on our upcoming Volume 2, Service Pack 2 release which will be available on end of August 2018. 
  
Regards, 
Muneesh Kumar G 
 



AS Andy Schuler August 6, 2018 03:30 PM UTC

Okay, thank you!


PR Padmini Ramamurthy Syncfusion Team August 7, 2018 05:53 AM UTC

Hi Andy, 
  
you are welcome and we will let you know once our Volume 2 SP2 is rolled out. 
  
Regards, 
Padmini R. 


Loader.
Up arrow icon