Declined
Last Updated: 08 Feb 2023 09:39 by ADMIN
David
Created on: 19 Jan 2023 13:00
Category: Entry
Type: Bug Report
0
Entry: Visual states work different on different platforms

On Android: RadEntry and .NET Maui Entry behavior are identical. When unfocused, the focused background is still applied.

On WinUI: RadEntry and .NET Maui behavior when are unfocused, the focused background is still applied. When RadEntry is in the "Focused" and "PointerOver" visual states, the control behavior is with the default state. When .NET Maui Entry is in the "Focused" and "PointerOver" visual states, the control behavior is with the "PoinetOver" visual state.

On iOS and MacCatalys: When RadEntry is unfocused, the focused background is still applied.

1 comment
ADMIN
Didi
Posted on: 08 Feb 2023 09:39

Hi David,

The team researched the case and the behavior is expected as normal state is not applied.

Normal state must be set when setting other visual states. In case when you unfocus the control, the normal state should be applied. 

Example:

<telerik:RadEntry>
    <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="CommonStates">
            <VisualState x:Name="Normal">
                <VisualState.Setters>
                    <Setter Property="BackgroundColor" Value="{AppThemeBinding Light='LightBlue', Dark='White'}" />
                    <Setter Property="TextColor" Value="{AppThemeBinding Light='Green', Dark='Black'}" />
                </VisualState.Setters>
            </VisualState>

            <VisualState x:Name="Focused">
                <VisualState.Setters>
                    <Setter Property="BackgroundColor" Value="Lime"/>
                    <Setter Property="TextColor" Value="{AppThemeBinding Dark='Black', Light='Red'}"/>
                </VisualState.Setters>
            </VisualState>
        </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>
</telerik:RadEntry>

I have changed the status of the item to "Declined", as the bug is not valid. Let me know if you have any further questions on this. 

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.