Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何重写xamarin表单应用程序标题的标题_C#_Visual Studio_Xamarin_Xamarin.forms - Fatal编程技术网

C# 如何重写xamarin表单应用程序标题的标题

C# 如何重写xamarin表单应用程序标题的标题,c#,visual-studio,xamarin,xamarin.forms,C#,Visual Studio,Xamarin,Xamarin.forms,我有以下“错误”:当我在我的应用程序中单击菜单项时,我需要在页面的标题处有一个自定义标题,但应用程序仅显示构建菜单项的viewmodel中的文本: MenuItems = new ObservableCollection<HomeMasterMenuItem>(new[] { new HomeMasterMenuItem { Id = 0, Label = "Buscar Redes",

我有以下“错误”:当我在我的应用程序中单击菜单项时,我需要在页面的标题处有一个自定义标题,但应用程序仅显示构建菜单项的viewmodel中的文本:

   MenuItems = new ObservableCollection<HomeMasterMenuItem>(new[]
                {
                    new HomeMasterMenuItem { Id = 0, Label = "Buscar Redes",  TargetType = typeof(FiltersNets)  },
                    new HomeMasterMenuItem { Id = 1, Label = "Inventario", TargetType = typeof(Inventory), Image = "ic_home_orange_100_18dp.png"  },
                    new HomeMasterMenuItem { Id = 2, Label = "Recepciones", Title = "recep", TargetType = typeof(Receptions), Image = "receptions.png"  },
                    new HomeMasterMenuItem { Id = 3, Label = "Despachos", TargetType = typeof(ShipOuts) },
                    new HomeMasterMenuItem { Id = 6, Label = "Salir", TargetType = typeof(MainPage) },
                });
MenuItems=新的ObservableCollection(新[]
{
新HomeMasterMenuItem{Id=0,Label=“Buscar Redes”,TargetType=typeof(FilterNets)},
新HomeMasterMenuItem{Id=1,Label=“Inventario”,TargetType=typeof(Inventory),Image=“ic\u home\u orange\u 100\u 18dp.png”,
新HomeMasterMenuItem{Id=2,Label=“Recepciones”,Title=“recep”,TargetType=typeof(Receptions),Image=“Receptions.png”},
新HomeMasterMenuItem{Id=3,Label=“Despachos”,TargetType=typeof(Shipout)},
新HomeMasterMenuItem{Id=6,Label=“Salir”,TargetType=typeof(主页面)},
});
我使用绑定将自定义测试(存储在属性中)写入xaml byt的标题中,但没有结果:(文本已分配,但标题保留来自homemastermenuitem的文本


你知道吗?再见。

如果你指的是导航栏中显示的标题,通常由当前显示页面的Title属性设置。我认为你与HomeMasterMenuItem有数据绑定,你需要删除它。