ListPicker AcceptButtonStyle and CancelButtonStyle not honoring Text property

1 Answer 174 Views
ListPicker
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Larry asked on 01 Nov 2022, 09:55 PM

To see this, in the SDKBrowserMaui application, change PopupStyling.xaml and see that text changes are not reflected in the control.

 

For example, changing it to:

            <Style TargetType="Button" x:Key="cancelButtonStyle">
                <Setter Property="BackgroundColor" Value="Transparent"/>
                <Setter Property="Text" Value="bob"/>
                <Setter Property="TextColor" Value="#1188FF"/>
            </Style>

Still shows Cancel as the text.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 03 Nov 2022, 09:44 AM

Hi Larry,

I have reproduced the behavior. Logged a bug report on your behalf: https://feedback.telerik.com/maui/1585759-pickers-cancel-and-accept-text-are-not-applied-through-style 

As a workaround set the Accept and Cancel Button Text to the PickerPopupSelectorSettings. 

<telerikInput:RadDatePicker >
            <telerikInput:RadDatePicker.SelectorSettings>
                <telerikInput:PickerPopupSelectorSettings 
                                                          HeaderLabelText="Date Picker"
                                                          AcceptButtonText="Yes"
                                                          CancelButtonText="X"/>
            </telerikInput:RadDatePicker.SelectorSettings>
</telerikInput:RadDatePicker>

This workaround is valid for all pickers. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 03 Nov 2022, 05:58 PM

Great. Thanks for the workaround. For the record, the words 'ok' and 'cancel' are fine with me. However, I set them via a resource for localization. Thanks again.
Tags
ListPicker
Asked by
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Didi
Telerik team
Share this question
or