Hello Xamarin Friends,
Today, I am going to create a custom ImageEntry. Whenever we are creating a login page, we can not understand which control we have to use for the username and password. I am creating a custom control today to solve this problem. We don't need to write more code with its use and page design will also looks good.
So let's start.
Firstly we create a ContentView and set the image and entry.
then we are using the BindableProperty to create this custom control.
Please make sure to add view reference.....
xmlns:controls="clr-namespace:CustomImageEntry.CustomControls"
TADAA!,
I have not yet told about the Borderless entry and CustomImage in this blog that I will tell in the next post.
All this my original code.
Features of Image Entry controls:-
Today, I am going to create a custom ImageEntry. Whenever we are creating a login page, we can not understand which control we have to use for the username and password. I am creating a custom control today to solve this problem. We don't need to write more code with its use and page design will also looks good.
So let's start.
Firstly we create a ContentView and set the image and entry.
then we are using the BindableProperty to create this custom control.
Please make sure to add view reference.....
xmlns:controls="clr-namespace:CustomImageEntry.CustomControls"
TADAA!,
I have not yet told about the Borderless entry and CustomImage in this blog that I will tell in the next post.
All this my original code.
Features of Image Entry controls:-
- Accent Color = ( AccentColor="BlueViolet")
- Text Property = (Text="Xamarin Skills")
- Keyboard Property = (Keyboard="Default")
- Placeholder Property = (Placeholder="Xamarin Skills")
- IsPassword Property = (IsPassword="False")
- Left ImageSource Property = (LImageSource="email")
- Right ImageSource Property = (RImageSource="eyeshow")
- ImageEntry RightImage = Clicked Property(RightImageClicked="ImageEntry_RightImageClicked")
- ImageEntry LeftImage Clicked Property = (LeftImageClicked="ImageEntry_LeftImageClicked")
- ImageAlignment Property = (ImageAlignment="Password")
No comments:
Post a Comment