如何在Xamarin表单中设置MasterDetailPage的

如何在Xamarin表单中设置MasterDetailPage的

本文介绍了如何在Xamarin表单中设置MasterDetailPage的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS和android的Xamarin表单上使用MasterDetailPage for app.

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

但是MasterDetailPage菜单中的宽度太大,我想对其进行调整.

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

如何在Android和iOS上为MasterDetailPage设置自定义宽度?

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

我的MasterDetailPage初始化代码:

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);
            }

推荐答案

我们当前无法调整MasterDetailPage的宽度详细信息

we cant currently adjust the width of the MasterDetailPage details

这篇关于如何在Xamarin表单中设置MasterDetailPage的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 10:14
查看更多