When I register the pages and controls using AddTransient it works but when I use AddSingleton it doesn't.
System.InvalidOperationException: PlatformView cannot be null here [mono-rt] at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutViewGroup, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].get_PlatformView() in ViewHandlerOfT.cs:line 36 [mono-rt] at Telerik.Maui.Handlers.RadMaskedEntryHandler.GetTextInputFromNativeVisualTree() [mono-rt] at Telerik.Maui.Handlers.RadMaskedEntryHandler.UpdateNativeTextInput() [mono-rt] at Telerik.Maui.Handlers.RadMaskedEntryHandler.NativeView_ChildViewRemoved(Object sender, ChildViewRemovedEventArgs args)
when setting MaxLength to RadEntry and this Entry is used in the Masked control template, the following exception occurs:
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length) at System.String.Substring(Int32 startIndex, Int32 length) at Telerik.RadStringHelper.Replace(String inText, Int32 startIndex, Int32 length, String replacementString) at Telerik.Maui.Handlers.RadMaskedEntryHandler.OnShouldChangeCharactersEvent(Object sender, ShouldChangeCharactersEventArgs args) at Telerik.Maui.Platform.RadMauiEntry.OnShouldChangeCharacters(Object sender, ShouldChangeCharactersEventArgs args) at Telerik.Maui.Handlers.RadTextFieldDelegate.ShouldChangeCharacters(UITextField textField, NSRange range, String replacementString)