Ane*_*A.M 4 xamarin xamarin-studio xamarin.forms
在我的Xamarin表单应用程序中,我想向Grid/StackPanel添加边框.背景颜色也是透明的.我使用了帧控制,但是当我将背景颜色设置为透明时,边框也未显示.请帮我?
Dem*_*ian 5
你基本上有两个可能性,因为这在Form中尚不支持,其中第一个是BoxViews在本文中按SO解释的那样使用.
BoxViews
否则,你可以用一个StackLayout在你的视图(StackLayout或Grid如你所提到的)与BackgroundColor和Padding的0.5作为解释在这里.
StackLayout
Grid
BackgroundColor
Padding
0.5
如果您需要更具体的例子,请告诉我.
归档时间:
10 年,8 月 前
查看次数:
8065 次
最近记录:
7 年 前