monotouch.dialog

How to set the background color on a DialogViewController (Monotouch.Dialog)

↘锁芯ラ 提交于 2020-01-16 00:47:06
问题 environment: creating an iPad application using Monotouch and the Monotouch.Dialog library. I've been trying to set the background color on a DialogViewController to no avail. I have multiple views in my application being loaded an unloaded. For non of them I manage to set the background color. What I have tried so far: Set the background color on the main window of my application --> works fine. Create a simple UIView, give it a size, set the background color and load it into the window -->

Monotouch.Dialog : Section font

戏子无情 提交于 2020-01-15 05:10:06
问题 It it possible to access the font and color properties of the section header and footer or do I need to subclass Section? I changed my UI to all black and everything looks great except my section headers and footers. Reflection API: class Login { public string Version = "1.2.3"; [Section ("Enter your credentials", "Email and password are required")] [Entry ("Enter your email address")] public string email; [Caption ("Password"), Password ("Enter your password")] public string password; [OnTap

Trying to add event to .ShouldReturn on an Entry Element

99封情书 提交于 2020-01-06 08:21:23
问题 I am trying to add an event that's triggered by the TextFieldShouldReturn inside a Monotouch.Dialog entry element. I am currently trying to attach an event like so: //create the entry element EntryElement newEntry = new EntryElement(thisQuestion.Text, "tap to type", null); //add should return newEntry.ShouldReturn(addAnswerToSurvey(newEntry.Value, thisQuestion.Index)); //add the entry to the section aSection.Add(newEntry); I get an error back on build: 'MonoTouch.Dialog.EntryElement

Tab Bar at the Bottom with MonoTouch.Dialog?

淺唱寂寞╮ 提交于 2020-01-02 08:29:32
问题 New to MonoTouch and MonoTouch.Dialog, but I'm sure it's possible to create a tab bar or button bar or what you want to call it - the black bar with icons/buttons at the bottom of the iPhone. Question is how to do it with MonoTouch.Dialog? Thanks for any help! 回答1: You don't do it with MT.Dialog. You would create a UITabBarController, and then assign a view controller to each of it's tabs. Each tab could point to a MT.Dialog DialogViewController, or any other type of ViewController. 回答2: Here

Adding an image to a Section in Monotouch.Dialog

社会主义新天地 提交于 2020-01-02 08:18:08
问题 I have created a view using MonoTouch.Dialog with a couple of sections. The sections require an image to be added before the other sections, however I am struggling to add the UIImage to the area before the first Section. How would I go about this? I have highlighted where in the RootElement I would like the Image to go. public void HomeScreen () { var root = CreateRoot_HomeScreen (); var dv = new DialogViewController (root, true); navigation.PushViewController (dv, true); } RootElement

Can I dismiss the iPhone keyboard by touching the background of DialogViewController (MonoTouch.Dialog)? [duplicate]

ε祈祈猫儿з 提交于 2019-12-30 04:32:07
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: MonoTouch.Dialog: Dismissing keyboard by touching anywhere in DialogViewController I'm using DialogViewController from MonoTouch.Dialogs. I'd like to be able to dismiss the keyboard by clicking on the background of the dialog. I usually employ the technique of filling the view with a large custom button and placing it behind all the other elements. However, I can't make this work in the DialogViewController. I

MonoTouch.Dialog: Responding to a RadioGroup Choice

橙三吉。 提交于 2019-12-30 00:04:27
问题 I have a Dialog created by MonoTouch.Dialog. There is a list of Doctors in a radio group: Section secDr = new Section ("Dr. Details") { new RootElement ("Name", rdoDrNames){ secDrNames } I wish to update an Element in the code once a Doctor has been chosen. What's the best way to be notified that a RadioElement has been selected? 回答1: Create your own RadioElement like: class MyRadioElement : RadioElement { public MyRadioElement (string s) : base (s) {} public override void Selected

Resizing Table Width in MonoTouch.Dialog

隐身守侯 提交于 2019-12-24 12:07:55
问题 I would like to override the table width that is given to MonoTouch.Dialog's tables by default. 回答1: You can't do this, because it uses UITableView/UITableViewController which have some special features to take up the width of the parent view. What you can do is make a UIView to act as a "container" that is sized to the height and width you want, then add the TableView as a subview to that. Now the DialogViewController's TableView will size to your container. Note* Container is then added as

How to set the background to transparent on a DialogViewController

强颜欢笑 提交于 2019-12-24 06:43:08
问题 When I set the MonoTouch.Dialog background color to uiclear(transparent), it throw an exception, why? and How to set it to transparent. Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object MyDialogViewController.LoadView () [0x00016] in MyDialogViewController.cs: ParentViewController.View.BackgroundColor = UIColor.Clear public class MyDialogViewController: DialogViewController { public MyDialogViewController (RootElement root) : base (root)

Monotouch.Dialog IOS 6 Split view Rotation issue

独自空忆成欢 提交于 2019-12-24 03:07:05
问题 BUMP .. still havent figured this out, the thing rotates, but out of view. so weird. can i provide better information to get help? STILL HAVING THIS ISSUE! its really bad i cant fix this :( help PLEASE BUMP .. please im dieing here! someone anyone! :) So, I'm using Monotouch.Dialog and since IOS 6, the rotation of my splitview controller is acting weird. It is actually rotating, but my detail view takes up the whole screen and the master view seems as if its being rotated off the screen frame