问题标签 [xamarin.forms]
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.
data-binding - 当 Xamarin.Forms 中的属性更改时,SearchBar.IsEnabled 绑定不会更新
当我的视图模型很忙时,我想禁用搜索栏。我的观点有以下 xaml(部分观点):
两个元素都绑定到同一个属性,但是当我的 ViewModel 引发 IsBusy = false 时,SearchBar 保持禁用状态。同时进度变得隐藏。
这里有什么问题?
xamarin.forms - TableView 可以有多个标题吗?
我附上了一张图片。表格视图可以有多个标题并按子模型分组吗?
我的模型结构看起来像这样。
- 您在图像中看到的视图是 ModuleView
- TableView(滑动导航位)会将它的源绑定到 Media 属性
- 该表将按 ModuleSection.Title 属性分组
这可能吗?如果是这样,我会从哪里开始?
为了增加复杂性,我更喜欢在 Xaml 中进行绑定 :)
c# - 水平 ListView Xamarin.Forms
有什么方法可以ListView
用类似horizontal scroll
的Xamarin.Forms
图像创建
这就是我为垂直所做的
ios - 显示来自 iOS 画廊的图像
通过依赖于平台的服务,我设法从设备上的一个画廊中获取图像的 NSUrl。它看起来像这样:“assets-library://asset/asset.JPG?id=01202427-4916-4F8F-99AA-D38D88181558&ext=JPG”。如何使用它在 Xamarin.Forms 共享项目中设置图像视图的源?
ios - 将 Xamarin Forms 中的编辑器滚动到视图中
使用 Xamarin 表单,请考虑下面的 Xaml。
这会渲染一个图像、一个编辑器和一个保存按钮。该图像采用 4x3 图像比例,覆盖了大约三分之一的可用屏幕高度。编辑器如下所示。
问题是键盘覆盖了 iOS 中的编辑器。通常是标准的 iOS 问题。
问题是:Xamarin Forms 的处理方式是什么?
谢谢
//约翰
xamarin - 用 StackLayout 填满整个屏幕
我有一个这样编码的 StackLayout:
但我希望 StackLayout 填充所有屏幕宽度和高度,我还添加了这样的树形按钮:
我怎样才能填满所有的屏幕尺寸?
xamarin - Xamarin.Forms 和访问自定义渲染器中的本机控件
如何获取对特定原生视图的引用,而不是 UIView?这是我的自定义标签渲染器:
我以这个渲染器示例为例。
xamarin.forms - Scroll horizontally in Xamarin.Forms ScrollView
I am using Xamarin.Forms and have created a ScrollView, which contains a horizontal StackLayout. I want to be able to scroll horizontally, so I set:
But I don't get horizontal scroll. The content of the StackLayout is wider than the screen, and I see the content is being clipped at the edge.
How do I achieve horizontal scroll with Xamarin.Forms ?
xamarin.forms - Xamarin 在 XAML 中形成 TableView
谁能告诉我如何在 XAML 中设置 TableView。试过 -
这种“尝试”在屏幕上呈现空白?
如果我在 TableSection 中添加额外的单元格,比如 EntryCell,我会得到 -
“对象类型 Xamarin.Forms.TextCell 无法转换为目标类型:Xamarin.Forms.View”
顺便说一句,我在哪里可以看到每个 Forms 元素的有效 XAML 语法?