问题标签 [monotouch.dialog]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1317 浏览

xamarin.ios - How to use UITableViewDelegate.AccessoryButtonTapped (with Monotouch)

I'm creating an IPad application using C#, Mono develop and Monotouch.

I've been using Monotouch.Dialog to create functionality similar to the wifi-settings on an iPhone. I'm using StyledStringElement with an accessory and am now trying to differentiate between tapping the row and tapping the DetailDisclosureButton.

I've been found out that I should override the UITableViewDelegate.AccessoryButtonTapped on the UITableView. I've tried to created a derived class from UITableViewDelegate and hook this into the Monotouch.Dialog. But this is where I got stuck. I didn't manage to replace the existing UITableViewDelegate with my extended version.

So my questions are:

  1. Is this the preferred way of handling this event (to be able to differentiate between a tap on the element and a tap on the DetailDisclosureButton) ?

  2. If not, any pointer on how to accomplish this ?

  3. I have been searching the web for a (similar) example but have not found any yet. Any examples that you know of that could get me started ?

Thanks,

boris

0 投票
4 回答
4008 浏览

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

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 --> works fine.

But as soon as I load a DialogViewController (with an associated view) the background color is always gray. The DialogViewController is used from the Monotouch.Dialog framework.

I'm pushing the DialogViewController onto a navigation controller to show a set of buttons laid out in a table view.

I must be missing out on something fundamental ! I have been looking through the Monotouch.Dialog code and tried a couple of other things, but nothing fixed my problem so far.

Any help highly appreciated.

boris

0 投票
1 回答
337 浏览

xamarin.ios - MonoTouch.Dialog:距离顶部 5 厘米的表格

我希望 MonoTouch.Dialog 创建的 UITableView 出现在距屏幕顶部 5 厘米左右的位置。默认情况下它位于顶部。

有没有一种简单的方法可以设置上边距?

0 投票
1 回答
145 浏览

xamarin.ios - MonoTouch.Dialog:无默认值

我正在使用BindingContext来生成表,并且不希望选择默认值。

我的班级有这个领域:

然后将其添加到根:

然而,UI 呈现一个选定的值“ES 250”而不是一个空白值:

在此处输入图像描述

0 投票
1 回答
475 浏览

xamarin.ios - MonoTouch.Dialog:文本对齐

我正在尝试右对齐单元格中输入的值:

但是使用左而不是右?我错过了什么?

在此处输入图像描述

0 投票
3 回答
2047 浏览

xamarin.ios - MonoTouch.Dialog:关闭键盘

使用反射 API 自动生成 UI。

当用户选择一个新字段,或者如果他们选择一个生成新视图的字段以供选择时,我如何关闭键盘。在后一种情况下,当用户返回第一个屏幕时,旧键盘仍然存在。

0 投票
1 回答
737 浏览

xamarin.ios - 异步调用后调整 MonoTouch.Dialog StyledMultilineElement 的大小

我正在玩 MonoTouch.Dialog 并编写了一些代码来显示一些推文。问题是表格单元格太小,当我异步StyledMultilineElement加载s时,单元格都聚集在一起。当我同步加载它们时它们看起来绝对完美(即没有/部分)QueueUserWorkItemInvokeOnMainThread

有没有办法让表格单元格重新计算它们的高度?

0 投票
1 回答
737 浏览

iphone - MonoTouch.Dialog:iPad 没有设置背景图像

使用 MonoTouch.Dialog 我创建了一个简单的 ViewController:

在 LoadView 中,我设置了背景图像。这适用于 iPhone,但不适用于 iPad。在这一点上,应用程序没有其他内容:

iPad没有设置背景是否有原因?

0 投票
2 回答
470 浏览

iphone - MonoTouch.Dialog:UINavigation 按住 UITabBar - 缺少返回按钮

我的 MonoTouch.Dialog 反射生成的表单位于 UINavigationControl 中的 UITabBar 中。效果很好。

但是,当用户单击从以下内容生成的列表时:

出现的状态列表是全屏的,不是 UINavigation 的一部分。这是可以理解的,因为对话框的父级是 UITabBar。

有没有办法让状态视图有一个后退按钮。现在用户无法从状态视图返回。见下图:

在此处输入图像描述

在此处输入图像描述

0 投票
2 回答
415 浏览

iphone - 是否可以使用 MonoTouch.Dialog 创建复选框选择列表?

基本上,我想要使用 RadioSelection 属性获得的相同功能,只是它允许进行多项选择。

像这样的东西:

查看文档似乎没有提到这样的事情。所以我的问题是:可以使用当前版本的 MonoTouch.Dialog 创建复选框选择列表吗?如果是这样,那怎么办?如果没有,有没有更好的方法来处理这种情况?