腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
绑定
不适
用于
StackLayout
</Page> <Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="loaded"> <Label text="{{ cnt }}" /> </Page>
浏览 2
提问于2016-08-06
得票数 0
2
回答
StackLayout
内标签的BindingContext与BindingContext的结合
、
、
、
、
我需要
绑定
TextColor of Label。但是Label是在
StackLayout
中使用BindingContext of SelectedArticle,因此
绑定
并
不适
用于
SelectedArticle以外的任何
绑定
(,我在这里错了吗?)public Color ArticleFontColor { get; set; } <
StackLayout
BindingContext="{Binding SelectedArticle}"&g
浏览 0
提问于2015-08-21
得票数 2
回答已采纳
1
回答
在CollectionView中使用ItemTemplate
绑定
的Xamarin Forms 4(9之前)的问题
、
、
、
为了定制CollectionView中特定项的外观,我使用DataTemplateSelector在运行时根据数据
绑定
属性的值选择DataTemplate。但是,与ListView中的情况不同,数据
绑定
似乎
不适
用于
CollectionView中的ItemTemplate。如果我用内联ItemTemplate替换资源ItemTemplate
绑定
,一切也会正常工作。 我正在尝试定制不同的对象,这些对象继承自ISensor。BackgroundColor="Yellow">
浏览 47
提问于2019-04-19
得票数 0
回答已采纳
3
回答
Xamarin.CommunityToolKit TouchEffect.Command没有在UWP工作
、
、
、
、
;} public ICommand PressedCommand =>新命令( () => Count++ ); 我错过了什么??知道吗?
浏览 8
提问于2021-08-31
得票数 2
回答已采纳
6
回答
如何在ViewCell中更改高度
、
、
我试图在listview上更改ViewCell,但下面的代码
不适
用于
我: <ViewCell Height="100"> <Image Source="{Binding Seller.Thumbnail}}" Aspect="AspectFit" /> <<e
浏览 9
提问于2015-06-07
得票数 18
回答已采纳
1
回答
NativeScript
绑定
中断UI
</ActionBar> <!示例tab.xml文件如下所示: 所有东西都像预期的那样工作,但是如果我试图将堆栈布局
绑定
到一个对象,那么所有的UI元素都是隐藏的。如果我删除
绑定
,我可以再次看到它们
浏览 2
提问于2016-06-22
得票数 0
回答已采纳
1
回答
旋转木马页面不会在某些设备上滑动。
、
、
、
、
我的项目中有以下XAML: <ContentPage> <Label Text="Red" /> </
StackLayout
>
浏览 9
提问于2016-05-01
得票数 1
回答已采纳
2
回答
相同标签上使用字符串格式的文本的不同颜色
、
我有如下所示的xaml代码:在这里,这能得到Id在一种颜色和*是在另一种颜色吗?
浏览 0
提问于2018-02-01
得票数 2
回答已采纳
1
回答
Nativescript卷轴
不适
用于
stackLayout
GridLayout> selectedColor="#4099FF" > <home-tab&
浏览 1
提问于2017-12-01
得票数 1
1
回答
为什么我的IsVisible
绑定
不适
用于
StackLayout
?茜素iOS
、
、
我有一个
绑定
属性,该属性控制项目是否可见: <Frame IsVisible="{Binding isVisible}"HasShadow="True" BackgroundColor="White" Padding="0"> 问题是,除非我移除框架周围的
StackLayout
,否则IsVisible
绑定
就无法工作。有谁
浏览 4
提问于2021-10-13
得票数 0
回答已采纳
1
回答
显示JSON键,而不是转换字符串
、
sites.html <ActionItem (tap)="settings()"> <Label [text]="'fa-cog' | fonticon" class="fa"></Label> </
Stac
浏览 1
提问于2016-06-02
得票数 0
1
回答
Xamarin形式的条件文本
、
、
、
XAML页面: <
StackLayout
ItemsSource="{Binding Contact.PhoneNumbers, TargetNullValue='n/a'}">
浏览 8
提问于2022-03-08
得票数 0
回答已采纳
8
回答
Xamarin.Forms: ListView to :如何设置高度?
在ContentPage中,在
StackLayout
中有一个ListView,在ScrollView中有一个
StackLayout
。
StackLayout
的方向是Vertical,在ListView下面有一个Button。 我的问题是,无论ListView有多少元素,它的高度都是53.33。我曾尝试将VerticalOptions设置为ListView和
StackLayout
上的Start和其他设置,但这并不会将高度从53.33更改为(如果我尝试使用HeightRequest和Start组合
浏览 12
提问于2014-07-06
得票数 42
回答已采纳
1
回答
内容视图
绑定
不起作用
、
BackgroundColor="White" CornerRadius="16" HorizontalOptions="Fill" VerticalOptions="Center"> <
浏览 3
提问于2017-12-13
得票数 0
1
回答
我的ContentPresenter不会显示它的内容
、
、
schemas.microsoft.com/winfx/2009/xaml" <Frame> <ContentPresenter Content="{TemplateBinding PopupContent}" />
浏览 5
提问于2017-08-15
得票数 3
回答已采纳
1
回答
绑定
到嵌套项
我有这样的代码: <
StackLayout
BindableLayout.ItemsSource="{Binding Classes}"> ...="{Binding .}" />
浏览 22
提问于2021-10-21
得票数 0
回答已采纳
1
回答
Xamarin窗体
绑定
到对象属性
、
、
、
、
我似乎在Xamarin Forms项目中遇到了数据
绑定
的问题。我有两个视图:一个
用于
列出项目,另一个
用于
查看详细信息。列表视图可以很好地加载项目及其所有属性的列表,但是详细信息页面是空白的,不会
绑定
到属性。in results) Items.Add(result); }并
绑定
到此> <
StackLayout</em
浏览 4
提问于2017-04-28
得票数 5
回答已采纳
1
回答
xamarin.forms第二层可
绑定
布局不显示
绑定
我正在尝试创建一棵类似于此的树:我能够创建前两个层,父层是一个滚动视图(显示7个项),子层是一个可
绑定
的布局,显示子布局。 <
StackLayout
BindableLayout.ItemsSource="{Binding dataPoints}" IsVisible="{Binding dataPointsVisible<DataTemplate>
浏览 3
提问于2022-05-12
得票数 0
1
回答
Xamarin Forms:如何正确地将两个视图模型中的数据
绑定
到单个视图?
、
、
、
这是
用于
测试的简短代码。问题是UI没有显示与ViewModelB
绑定
的标签中的文本。在调试过程中,当我在xaml中将鼠标悬停在标签中的文本上时,我看到正确的
绑定
数据在那里,但是UI就是不显示。在XAML中: <
StackLayout
> <
StackLayout
.BindingContext>
浏览 25
提问于2021-03-16
得票数 0
回答已采纳
1
回答
在Xamarin.Forms中没有调用
绑定
命令的按钮命令
绑定
、
、
、
、
我添加了两个按钮:一个
用于
刷新数据,另一个
用于
在设备上本地存储数据。问题是:它们都不起作用,
绑定
不会在日志中产生错误,所以我猜它确实将命令
绑定
到按钮上,但是当我单击它时,命令不会被调用。Items}"> <DataTemplate> <
StackLayout
Orientation="Hori
浏览 3
提问于2016-03-10
得票数 5
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券