在 Xamarin.Forms 中组合TabbedPage时,如何让 UWP 使用页面的Icon属性?
如果我正确配置我的表单属性/文件, UWP 似乎可以很好地支持这一点。
这是我的 TabbedPage XAML。这些图标都已设置并适用于 iOS 和 Android,甚至 UWP 中的页面图像也可以正常呈现(这意味着文件可能正确地存在于项目中)。
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:tabbed"
x:Class="tabbed.MainPage">
<TabbedPage.Children>
<local:InitialPage Title="Tab1" Icon="star.png" />
<ContentPage Title="Tab2" Icon="gear.png">
<ContentPage.Content>
<StackLayout>
<Label Text="A nice label." />
<Image Source="star.png" /><!-- works here -->
</StackLayout>
</ContentPage.Content>
</ContentPage>
</TabbedPage.Children>
</TabbedPage>