-
Notifications
You must be signed in to change notification settings - Fork 36
FreakyEntry
The default underline of your Android Entry/Editor won't be annoying you anymore ;)
Still, want the underline? You can add it using a BoxView (Never planned to add an API for this) :D
FreakyEditor for now just removes the pesky default underline and gives you an option to disable copy-paste functionality, everything else is just the same as your regular MAUI Editor. (More features will be implemented on demand)
The main feature for Freaky Entry is adding Left and Right Drawable Images with Padding and Commands wired with it.
<freakyControls:FreakyEntry
Placeholder="This is a freaky entry with an image"
ImagePadding="10"
ImageCommand="{Binding ImageWasTappedCommand}"
ImageCommandParameter="{Binding CommandParam}"
ImageHeight="{OnPlatform 25, iOS=25, Android=40}"
ImageWidth="{OnPlatform 25, iOS=25, Android=40}"
ImageAlignment="Right"
ImageSource="calendar"
Keyboard="Chat"/>
ImageSource: Accepts a Maui ImageSource wherein you can assign the icon you want to display as a Right or Left ViewMode to your Entry.
ImageAlignment: Align the Image to the Right or Left Side of your Entry.
ImageHeight/ImageWidth : Height or Width that you want that Image.
ImagePadding: The amount of padding you want your image to have.
ImageCommand/ImageCommandParameter : A command and command parameter for your image's tap event.
AllowCopyPaste: Disable the copy-paste long click functionality in your freaky entry
Please know, Our control's changes will get overridden if you use the "ClearButtonVisibility" property's WhileEditing option.
Note: Since the images are a part of the Entry Control, Giving unreasonable Height/Width or Padding to the Image will distort the Image displayed in your Entry control. Keep these values relative to your entry size.