Bug Report T1287251
Visible to All Users

DataFormView throws NotSupportedException on an attempt to show the DataFormComboBoxItem picker on a page after Flyout navigation

created 13 days ago (modified 13 days ago)

Steps to reproduce:

  1. Run the attached project.
  2. Enter fake values in the Login form and click on its button.
  3. Select the Popup tab.
  4. On the opened page, click on the Items page.
  5. Select any value in the DataFormComboBoxItem on the opened page.
  6. Open Flyout and select About.
  7. Open Flyout and select Main Page.
  8. Open the same DataFormComboBoxItem's picker.

Expected results:

The picker is correctly opened.

Current results:

DataFormView throws NotSupportedException.

Additional information:

The attached project and screencast illustrate the problematic behavior.

Call Stack
System.NotSupportedException: 'Unable to activate instance of type DevExpress.Maui.DataForm.Internal.DataFormDataProvider from native handle 0x7ffe1ffa78b8 (key_handle 0x15c7a97).' 0x10 in Android.Runtime.RuntimeNativeMethods.monodroid_debugger_unhandled_exception C# 0x2D in Android.Runtime.DynamicMethodNameCounter.10 C# 0x277 in Java.Interop.TypeManager.CreateInstance at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:356,5 C# 0x21 in Java.Lang.Object.GetObject at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:302,4 C# 0x1E in Java.Lang.Object._GetObject<DevExpress.Android.Editors.DataForm.Protocols.DXDataFormDataProvider> at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:288,4 C# 0x2 in Java.Lang.Object.GetObject<DevExpress.Android.Editors.DataForm.Protocols.DXDataFormDataProvider> at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:280,4 C# 0x8 in Java.Lang.Object.GetObject<DevExpress.Android.Editors.DataForm.Protocols.DXDataFormDataProvider> at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:274,4 C# 0x3 in DevExpress.Android.Editors.DataForm.Protocols.DXDataFormDataProvider.n_IsSourceUpdated_II C# 0x1D in Android.Runtime.DynamicMethodNameCounter.10 C# 0xD in Java.Interop.JniNativeMethods.CallBooleanMethodA at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net8.0/JniEnvironment.g.cs:18081,4 C# 0x53 in Java.Interop.JniEnvironment.InstanceMethods.CallBooleanMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net8.0/JniEnvironment.g.cs:20031,4 C# 0x26 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeAbstractBooleanMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:136,6 C# 0x12 in DevExpress.Android.Editors.DataForm.DataFormItemDataProviderImpl.SourceUpdated C# 0xB in DevExpress.Maui.DataForm.Internal.DataFormComboBoxEditor.SetPickerDataProvider C# 0xF in DevExpress.Maui.DataForm.Internal.DataFormComboBoxEditor.XFEditorOnFocused C# 0x13 in Microsoft.Maui.Controls.VisualElement.OnFocused at /_/src/Controls/src/Core/VisualElement/VisualElement.cs:1546,23 C# 0x16 in Microsoft.Maui.Controls.VisualElement.OnIsFocusedPropertyChanged at /_/src/Controls/src/Core/VisualElement/VisualElement.cs:1679,5 C# 0x1E in Microsoft.Maui.Controls.BindableObject.OnBindablePropertySet at /_/src/Controls/src/Core/BindableObject.cs:675,5 C# 0x1E in Microsoft.Maui.Controls.Element.OnBindablePropertySet at /_/src/Controls/src/Core/Element/Element.cs:642,4 C# 0x13C in Microsoft.Maui.Controls.BindableObject.SetValueActual at /_/src/Controls/src/Core/BindableObject.cs:662,5 C# 0x168 in Microsoft.Maui.Controls.BindableObject.SetValueCore at /_/src/Controls/src/Core/BindableObject.cs:590,5 C# 0x19 in Microsoft.Maui.Controls.BindableObject.SetValue at /_/src/Controls/src/Core/BindableObject.cs:532,4 C# 0x8 in Microsoft.Maui.Controls.Element.SetValueFromRenderer at /_/src/Controls/src/Core/Element/Element.cs:490,4 C# 0x1E in DevExpress.Maui.Core.Internal.MauiReflection.IElementController.SetValueFromRenderer C# 0x8A in DevExpress.Maui.Editors.Internal.EditBaseHandler<DevExpress.Maui.Editors.ComboBoxEdit,DevExpress.Android.Editors.ComboBoxEdit>.HandlePlatformFocusChange C# 0x7 in DevExpress.Maui.Editors.Internal.EditBaseHandler<DevExpress.Maui.Editors.ComboBoxEdit,DevExpress.Android.Editors.ComboBoxEdit>.OnFocusChangeListener.OnFocusChange C# 0x12 in Android.Views.View.IOnFocusChangeListenerInvoker.n_OnFocusChange_Landroid_view_View_Z at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net9.0/android-35/mcw/Android.Views.View.cs:2834,5 C# 0xB in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLZ_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:187,5 C#

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.