相关疑难解决方法(0)

Xamarin.Forms中的分隔符

我想在表单中使用水平分隔线.据我所知,Xamarin.Forms没有提供.

有人可以为分隔符提供一个片段吗?

更新1

根据Jason的提议,这看起来很好:

// draws a separator line and space of 5 above and below the separator    
new BoxView() { Color = Color.White, HeightRequest = 5  },
new BoxView() { Color = Color.Gray, HeightRequest = 1, Opacity = 0.5  },
new BoxView() { Color = Color.White, HeightRequest = 5  },
Run Code Online (Sandbox Code Playgroud)

呈现以下分隔线:

在此输入图像描述

xamarin xamarin.forms

34
推荐指数
5
解决办法
4万
查看次数

标签 统计

xamarin ×1

xamarin.forms ×1