Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Create Entry Custom Control with Property to Capitalize Text

$
0
0

Hi there!

If you need to set up ENTRY control to capitalize text you use the following XMLA code (Xamarin.Forms 3.1 feature):

    <Entry Placeholder="Enter your text" HeightRequest="40">
        <Entry.Keyboard>
            <Keyboard x:FactoryMethod="Create">
                <x:Arguments>
                    <KeyboardFlags>CapitalizeNone</KeyboardFlags>
                </x:Arguments>
            </Keyboard>
        </Entry.Keyboard>
    </Entry>

I'd like to create an ENTRY CUSTOM control where I can define the keyboard flag like:

where xxxx is keyboard flag enum = CapitalizeCharacter, CapitalizeCharacter, CapitalizeNone etc.

Can you help me to create this control?

Thank's in advance.

Best regards,

Ciro


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>