Xamarin.Forms 2.2更新后,Xamarin.Forms汉堡菜单图标消失了 [英] Xamarin.Forms Hamburger Menu Icon gone after Update to Xamarin.Forms 2.2

查看:102
本文介绍了Xamarin.Forms 2.2更新后,Xamarin.Forms汉堡菜单图标消失了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Xamarin.Forms项目从Xamarin.Forms 2.0更新为Xamarin.Forms 2.2之后,汉堡包"图标消失了.

After I updated my Xamarin.Forms project from Xamarin.Forms 2.0 to Xamarin.Forms 2.2, the Hamburger Icon is gone.

我没有运气就用Google搜索,有人遇到过同样的问题吗?

I've googled without luck, has anybody experienced the same issue?

推荐答案

如果默认图标消失了,则可以设置自己的母版"页面图标,例如:

If the default icon has disappeared you can set your own icon of the Master page for example:

public class MasterPage : MasterDetailPage
{
    FlyOutMenuPage menu = new FlyOutMenuPage ();
    Master = menu;
}

public class FlyOutMenuPage : ContentPage
{
    Icon = "menu.png";
} 

menu.png是资源图片,您可以从此处获得很多图标:

And menu.png is a resource image, you can get lots of icon from here:

https://www.iconfinder.com/search/?q= hamburger& price = free

这篇关于Xamarin.Forms 2.2更新后,Xamarin.Forms汉堡菜单图标消失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆