[MonoTouch] MonoTouch.Dialog Custom Sections

2012-12-09 Thread Juan Manuel Gómez Álvarez
Hello, I want to customize the look of the Sections in MonoTouch.Dialog. I follow Nic´s approach (link below, thanks Nic), just a little different, I control the cell´s position from the element instead of the section. However, he mentions that he extends from DialogViewController and overrides

Re: [MonoTouch] MonoTouch.Dialog Custom Sections

2012-12-09 Thread Miljenko Cvjetko
Hi On 2012.12.09 20:24, Juan Manuel Gómez Álvarez wrote: Hello, I want to customize the look of the Sections in MonoTouch.Dialog. I follow Nic´s approach (link below, thanks Nic), just a little different, I control the cell´s position from the element instead of the section. However, he

Re: [MonoTouch] MonoTouch.Dialog Custom Sections

2012-12-09 Thread Juan Manuel Gómez Álvarez
Hello Miljenko, First of all, thank you for the reply. I was using GetCell() (Element), but the problem occurs when GetCell is called for the first time, because the screen only renders it the second time it is called. I tried to force it with ReloadData, but it doesn't work. Your

[MonoTouch] Why does the UIAlertView not appear immediately?

2012-12-09 Thread Guido Van Hoecke
Good Evening to All, I have this little static utility class: using System; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace ZzLib { public class MCActivityView : UIAlertView { private static System.Drawing.RectangleF _frame = new

Re: [MonoTouch] MonoTouch.Dialog Custom Sections

2012-12-09 Thread Miljenko Cvjetko
Hi On 2012.12.09 23:07, Juan Manuel Gómez Álvarez wrote: Hello Miljenko, First of all, thank you for the reply. No problems at all. I was using GetCell() (Element), but the problem occurs when GetCell is called for the first time, because the screen only renders it the second time it is

Re: [MonoTouch] MonoTouch.Dialog Custom Sections

2012-12-09 Thread Juan Manuel Gómez Álvarez
Sure! My custom Element: public override UITableViewCell GetCell (UITableView tv) { var cell = base.GetCell (tv); this.Caption+=IndexPath.Row; return cell; } Add the Element to one Section Section createCredits() { var section = new Section(Foo); var element = new

Re: [MonoTouch] Why does the UIAlertView not appear immediately?

2012-12-09 Thread Jason Awbrey
are you executing on the UI thread? On Sun, Dec 9, 2012 at 4:10 PM, Guido Van Hoecke gui...@gmail.com wrote: Good Evening to All, I have this little static utility class: using System; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace ZzLib { public class

Re: [MonoTouch] Why does the UIAlertView not appear immediately?

2012-12-09 Thread Brad Moore
Put your work off on its own thread. MCActivityView.Start(); ThreadPool.QueueUserWorkItem(delegate { // Do heavy operation here InvokeOnMainThread(delegate { MCActivityView.Stop(); }); }); On Mon, Dec 10, 2012 at 9:10 AM, Guido Van Hoecke gui...@gmail.com wrote: Good

Re: [MonoTouch] MonoTouch.Dialog Custom Sections

2012-12-09 Thread Juan Manuel Gómez Álvarez
Ok, I figured it out... It was my fault. It was working but I only proofed it with the caption, I thought that the element draw caption after getCell method, but it rendered before. Thank you! PS Miljenko: I'll give you feedback for your MonoMobile framework. Juan M Gómez @_jmgomez_ Software

[MonoTouch] Monotouch Dialog Entry element with 2 entries (same row)

2012-12-09 Thread Alejandro Vazquez
Hi, I would like to know if there is a way to create a MTD custom entry element so I can have 2 entries in the same row. Example of an element  - | Caption    (value)  |  Caption    (value) |