在Xamarin.Forms我使用Label并尝试设置字体.
以下代码有效: -
Label label1 = new Label();
label1.Font = Font.SystemFontOfSize(10);
Run Code Online (Sandbox Code Playgroud)
但是,尝试指定字体属性,如: -
Label label1 = new Label();
label1.Font = Font.SystemFontOfSize(10, FontAttributes.Bold);
Run Code Online (Sandbox Code Playgroud)
阻止ContentPage呈现异常.
有一个Font.BoldSystemFontOfSize(),可以使用,但这是不推荐的,所以我现在尝试使用Font.SystemOfSize.
怎么用这个呢?
在关于Xamarin论坛的这个问题中,https: //forums.xamarin.com/discussion/20517/curved-corners-in-tableview-cells Craig Dunn教授如何使用框架创建单元格.
我想在每个单元格之间添加一个空格.
目前细胞似乎是胶合的,并且ViewCell
没有空间特性.
谢谢!
我有一个长期运行的任务,我想显示进度指示器和消息.
我已经尝试使用,ActivityIndicator
并且正确显示,它允许更新底层控件.
这段Xamarin
iOS
代码正是我想要的,但我需要在使用中完成Xamarin.Forms
.
http://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/
有任何想法吗?