我想在表单中使用水平分隔线.据我所知,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表单应用程序中,我想向Grid/StackPanel添加边框.背景颜色也是透明的.我使用了帧控制,但是当我将背景颜色设置为透明时,边框也未显示.请帮我?