Unplanned
Last Updated: 29 Mar 2024 12:44 by ADMIN
Nico
Created on: 27 Mar 2024 07:29
Category: UI for .NET MAUI
Type: Bug Report
0
PickerPopupSettings Styling crashing in MAUI Nightly / upcoming SR4

I would like to draw attention to this at an early stage.
When using MAUI Nightly 8.0.20-nightly.10376, the app crashes immediately upon startup if you set Telerik Popup Settings in the MAUI Styles

See min repro example https://github.com/baaaaif/MauiNightlyCrash

<MauiVersion>8.0.20-nightly.10376</MauiVersion>
<Style TargetType="telerik:RadTimePicker">
    <Setter Property="PopupSettings">
        <Setter.Value>
            <telerik:PickerPopupSettings IsHeaderVisible="False" />
        </Setter.Value>
    </Setter>
</Style>

From the inner Exception...:

NameValueType
InnerException{"Object reference not set to an instance of an object."}System.Exception {System.NullReferenceException}

at Microsoft.Maui.Controls.AppThemeBinding.AppThemeProxy..ctor(Element parent, AppThemeBinding binding) at Microsoft.Maui.Controls.AppThemeBinding.Apply(Object context, BindableObject bindObj, BindableProperty targetProperty, Boolean fromBindingContextChanged, SetterSpecificity specificity) at Microsoft.Maui.Controls.BindableObject.SetBinding(BindableProperty targetProperty, BindingBase binding, SetterSpecificity specificity) at Microsoft.Maui.Controls.BindableObject.SetBinding(BindableProperty targetProperty, BindingBase binding) at Microsoft.Maui.Controls.BindableObjectExtensions.SetAppTheme[T](BindableObject self, BindableProperty targetProperty, T light, T dark) at Microsoft.Maui.Controls.BindableObjectExtensions.SetAppThemeColor(BindableObject self, BindableProperty targetProperty, Color light, Color dark) at Telerik.Maui.Controls.PickerPopupSettings.OnPopupOutsideBackgroundColorPropertyChanged(Color color) at Telerik.Maui.Controls.PickerPopupSettings..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)


1 comment
ADMIN
Yana
Posted on: 29 Mar 2024 12:44

Hello Nico,

Thank you for reporting this issue, we reproduced it on our side, so I've updated the status of this item to "Unplanned".

We'll have it in mind to test this concrete scenario with the latest releases of .NET MAUI.

I've updated your points for bringing it to our attention.

Regards,
Yana
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com