小编Pet*_*ete的帖子

如何设置Xamarin.Forms Label Font Bold

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.forms

18
推荐指数
2
解决办法
2万
查看次数

如何在自定义Xamarin.Forms ViewCell上的行之间添加分隔符空间?

在关于Xamarin论坛的这个问题中,https: //forums.xamarin.com/discussion/20517/curved-corners-in-tableview-cells Craig Dunn教授如何使用框架创建单元格.

我想在每个单元格之间添加一个空格.

目前细胞似乎是胶合的,并且ViewCell没有空间特性.

谢谢!

c# grid listview custom-cell xamarin.forms

4
推荐指数
1
解决办法
2万
查看次数

Xamarin Forms显示阻塞加载消息

我有一个长期运行的任务,我想显示进度指示器和消息.

我已经尝试使用,ActivityIndicator并且正确显示,它允许更新底层控件.

这段Xamarin iOS代码正是我想要的,但我需要在使用中完成Xamarin.Forms.

http://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/

有任何想法吗?

xamarin.ios xamarin xamarin.forms

0
推荐指数
1
解决办法
2639
查看次数

标签 统计

xamarin.forms ×3

c# ×1

custom-cell ×1

grid ×1

listview ×1

xamarin ×1

xamarin.ios ×1