【问题标题】:How to set icon on PrismContentPage Navigation Bar?如何在 PrismContentPage 导航栏上设置图标?
【发布时间】:2017-01-03 12:02:42
【问题描述】:

请尽快给出解决方案

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
             xmlns:commonViews="clrnamespace:Lawyer_Diaries.Views.CommonViews;assembly=Lawyer_Diaries"
             prism:ViewModelLocator.AutowireViewModel="True"
             x:Class="Lawyer_Diaries.Views.DashBoard"          
             Padding="{StaticResource Paddingios}">

【问题讨论】:

  • 欢迎来到 Stack Overflow!为了给您一个很好的答案,如果您还没有看过How to Ask,它可能会对我们有所帮助。如果您可以提供minimal reproducible example,它也可能很有用。 BTW Stack Overflow 现在提供编码服务!

标签: xamarin.forms prism


【解决方案1】:

将图标添加到内容页面的属性中,就像填充一样.. 例如 图标="someImage.png";

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多