【发布时间】:2018-05-05 09:44:57
【问题描述】:
在 Xamarin.Forms 中组合 TabbedPage 时,如何让 UWP 使用页面的 Icon 属性?
如果我正确配置了我的表单属性/文件,looks like UWP could support this 就好了。
这是我的 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>
【问题讨论】:
标签: xamarin.forms uwp xamarin.uwp tabbedpage