Я пытаюсь скрыть панель от меню гамбургера, и просто сохранить кнопку со значком, как Uber App.
![enter image description here](https://i.stack.imgur.com/GyMh6.jpg)
У меня есть значение по умолчаниюПодробная структура главной страницы, и я попробовал несколько решений:
1 - в App.xaml
<ResourceDictionary>
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="Transparent"/>
<Setter Property="BarTextColor" Value="Red"/>
</Style>
</ResourceDictionary>
2 - MasterDetailPageRenderer
public class CustomMasterDetailRenderer : MasterDetailPageRenderer
{
public CustomMasterDetailRenderer(Android.Content.Context context):base(context)
{
}
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
{
base.OnLayout(changed, left, top, right, bottom);
var toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
if (toolbar != null)
{
toolbar.SetBackgroundColor(Android.Graphics.Color.Argb(0, 0, 0, 0));
}
}
}
К сожалению, получил это какрезультат:
![enter image description here](https://i.stack.imgur.com/GD8Jt.jpg)