MonoTouch.Dialog: adjust input alignment for EntryElement

Using EntryElement to enter data, as this leads to the fact that the input data is aligned in the middle.

How to indicate that the recording should be right-aligned on the iPad.

For instance:

enter image description here

+3
source share
1 answer

Have you tried overriding CreateTextField to EntryElement ?

This should give you complete control over how to create a UITextField for the entry element of the element.

Refresh Note that if you override CreateTextField, you must also override the Cellkey property to ensure that this cell is not used in conjunction with the mechanisms for exchanging UITableView cells with other EntryElements.

Of course, you need to know the correct size before calling it (or delay some properties until you know for sure).

+5
source

Source: https://habr.com/ru/post/1383691/


All Articles