1
是否可以将堆栈布局放入按钮中?按钮中的堆栈布局Xamarin Forms
<StackLayout HorizontalOptions="Start" Orientation="Horizontal">
<Label Text="s" FontFamily="icon-font" FontSize="16" FontAttributes="Bold" TextColor="{StaticResource orangeColor}"></Label>
<Label Text="Test" FontSize="16" FontAttributes="Bold" />
</StackLayout>
我有一个图标字体文件。我想渲染按钮内容中的图标和普通文本。在Xamarin Forms中可以做到吗?
没有,但你可以让你的StackLayout的外观和行为像一个按钮。 – Jason