The easy way (I think):

Grab EntryElement, and copy it from Elements.cs into your own one.
Call it "MJEntryElement"

Change the CellKey from EntryElement to MJEntryElement, and change the
constructors etc.

Fond the GetCell method. (around line 1480 in the current Elements.cs)
Find where it sets up entry.
set entry.TextAlignment property to UITextAlignment.Right

Or, you can do that in EntryElement in the MonoTouch code, but then
it's harder to upgrade (pull from git). You could just add a property
called "EntryAlignment" and assign that to the entry object when you
create it.



On Mon, Jan 30, 2012 at 15:31, MojoDK <[email protected]> wrote:
> Hi,
>
> I need the MT.Dialog EntryElement to have a left aligned Caption and a
> *right* aligned TextField. The TextField width must be the cell width minus
> the caption width.
>
> Anyone have a sample of this?
>
> I've tried several times to make my own, but I'm not skilled enough - mine
> looks like crap .. :(
>
> Looking forward to hear from you.
>
> Thanks!
> Mojo
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/MT-Dialog-right-aligned-EntryElement-tp4341288p4341288.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to