相关疑难解决方法(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 Forms控件带边框

在我的Xamarin表单应用程序中,我想向Grid/StackPanel添加边框.背景颜色也是透明的.我使用了帧控制,但是当我将背景颜色设置为透明时,边框也未显示.请帮我?

xamarin xamarin-studio xamarin.forms

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

标签 统计

xamarin ×2

xamarin.forms ×2

xamarin-studio ×1