I have a decimal value I want to display and edit as a percentage using Xamarin.Forms <Entry /> control. I have tried to use IValueConverter but when I'm editing the cursor is all over the place and its really difficult to edit properly and simply. I get the same using StringFormat=.
a) How can I just edit the decimal as * 100 simply and easily?
b) Can I show a % symbol?
c) Can I do the conversion conditionally: when field Y = 1, show as percentage, When field Y = 2, show as decimal?
You could use
UnFocusedevent to show the decimal value as % symbol.Xaml:
Code:
Xaml:
Code: