I am always amazed by the capability of Xamarin.Forms Custom Renderer. I wanted to try something and thought of extending the Entry Custom Renderer for Windows Phone App initially to try and provide Corner Radius for Textbox.
If you are a Windows Phone developer, then you already know the complexities. Generally, the TextBox element in Windows Phone, doesn’t have the property of CornerRadius. Corner Radius, generally provides the Curved borders, which in this case would provide for the Textbox control. Anyways, in order to provide a separate border, we generally have to nest the TextBox inside a Border element to provide the Corner Radius.
<Border Margin="5" Padding="5" BorderThickness="1" BorderBrush="Red" Background="AntiqueWhite" CornerRadius="10"> <TextBlock Text="Lorem ipsum"/> </Border>
Now I have tried to achieve somewhat same in Xamarin.Forms using Custom Renderers for Windows Phone.
The code is currently checked-in here.
Happy Coding!
- Use TOTP for securing API Requests - July 12, 2024
- Backup Files from Ubuntu to Azure - December 14, 2023
- Read Gzip Log Files without Extracting - June 13, 2023
Hi ANUBHAV RANJAN,
Please help me.
I am facing problem.How can i Apply border in Entry ,Editor,and picker control.Just like Square , or round.
Is the .Children function in Xamarin still working? If not, what is the replacement that has same function of it.
Hi @syntaxerror141
I don’t think it’s removed. You can check this link https://developer.xamarin.com/api/type/Xamarin.Forms.StackLayout/
It’s the StackLayout API and it still has Children Property.
In case, you are not getting it, can you please email me the source code and probably I will try to look at it
Hi, Is it still functioning? I guess, the control.children function is not anymore functioning in xamarin library. Did they remove it?
Pingback: Xamarin.Forms Label Renderer for Displaying many lines | Anubhav Ranjan