dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.63k stars 1.62k forks source link

MaskedBehavior from the Toolkit Behaviors is not working properly #22041

Open TMISoftware opened 2 weeks ago

TMISoftware commented 2 weeks ago

Description

https://github.com/dotnet/maui/assets/43244171/5df56b0c-6c51-44eb-b41f-007b19622690

Steps to Reproduce

        <Entry x:Name="PhoneED"
            TextColor="{AppThemeBinding Light={StaticResource GREY_BLUE}, Dark={StaticResource GREY_BLUE}}"
            FontSize="Small"
            Keyboard="Telephone"
            HorizontalTextAlignment="Start"
            VerticalTextAlignment="Center"
            Grid.Column="2"
            Grid.Row="13">
            <Entry.Behaviors>
                <toolkit:MaskedBehavior Mask="XXX-XXX-XXXX"/>
            </Entry.Behaviors>
        </Entry>

Link to public reproduction project repository

No response

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11 and up

Did you find any workaround?

Not yet.

Relevant log output

No response

kevinxufei commented 2 weeks ago

Verified this issue with Visual Studio 17.10.0 Preview 5 (8.0.14/8.0.21). Can repro it on android platform(api34). Other version: PackageReference Include=" communityToolkite. Maui" Version="8.0.1"