作者:夜晨在行动 | 来源:互联网 | 2023-08-29 18:23
篇首语:本文由编程笔记#小编为大家整理,主要介绍了xamarin中的定位元素c#相关的知识,希望对你有一定的参考价值。
信息图标只需要使用c#在此标签的右侧。
EXA:
this.COntent= new StackLayout
{
Children =
{
infoIcon,
Label,
webView
}
非常感谢!
答案
this.COntent= new StackLayout
{
Children =
{
new StackLayout
{
Orientation = StackOrientation.Horizontal,
Children =
{
Label,
infoIcon,
}
},
webView
}
}
就是这样,希望它有所帮助!