JULIK JULIK - 27 days ago 24
C# Question

How to set width for MasterDetailPage in xamarin forms

I am using the MasterDetailPage for app on Xamarin forms for ios and android.

however the width in MasterDetailPage menu is too large and i would like to adjust it.

How i can Set custom width for MasterDetailPage on android and iOS?

My MasterDetailPage init code:

MyChatsMasterView _myChatsMasterView;
MyChatsView _myChatsView;

public MyChatsMasterDetailView(MyChatsMasterView myChatsMasterView, MyChatsView myChatsView)
{
NavigationPage.SetHasNavigationBar(this, false);

InitializeComponent();
this.MasterBehavior = MasterBehavior.Popover;

_myChatsMasterView = myChatsMasterView;
_myChatsView = myChatsView;

Master = _myChatsMasterView;
Detail = _myChatsView;

_myChatsMasterView.SetDetailView(this);
}

Answer

we cant currently adjust the width of the MasterDetailPage details

Comments