Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Editing and using the Xamarin.Forms source code

Daniel.LochnerDaniel.Lochner ZAMember ✭✭
edited January 2018 in Xamarin.Forms

I was wondering if it was possible to edit the Xamarin.Forms source code and then use the edited one like you normally would in your xamarin.forms project.

Basically, my goal would be to change the PhoneMasterDetailRenderer in order to change the width value of the Master page. (It is a percentage of the screen, which is 0.8, and so by changing that it should adjust the size of the master?)

Here is the section of code I wish to change:

void LayoutChildren(bool animated)
    var frame = Element.Bounds.ToRectangleF();
    var masterFrame = frame;
    masterFrame.Width = (int)(Math.Min(masterFrame.Width, masterFrame.Height) * 0.8);

The issue of not being able to change the width of the master has been a problem for a very long time, and hopefully this may lead to a solution.

Thanks, Daniel.

Best Answer


Sign In or Register to comment.