Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Adjust Width of Master on MasterDetailPage

$
0
0

I am using the MasterDetailPage for the NavigationDrawer on Android. Implementing the functionality has gone perfectly, however the width is too large and i would like to adjust it.

I have tried to set the WidthRequest for the ListView CellTemplate, ListView, and the Master Property of the MasterDetailPage all to the same value, and i can see that the cells are at the right width but the slide out part is still too big.

public MainPage(Action loginFaliedCallback)
        {
            MenuPage menu = new MenuPage { Title = "Menu", WidthRequest = 250 };
            menu.Menu.ItemSelected += (s, e) => NavigateTo(e.SelectedItem as MenuItem);
            Master = menu;
            Master.WidthRequest = 250;
        }

Any information would be greatly appreciated. Thanks in advance.

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>