How can I customize width of the views in SplitView in Xamarin.Mac

211 views Asked by At

enter image description here

I am try to fit two views in single page using SplitView, one view present in left side and another present in right side of the screen. These two view's are separated by separator line. I want to customize width of these two view's . How can I change the width of the view's in SplitView. Thanks in advance.

1

There are 1 answers

3
Chris Hamons On

I believe you need this API: https://developer.apple.com/reference/appkit/nssplitview/1455316-setposition?language=objc

which is bound as:

    void SetPositionOfDivider (nfloat position, nint dividerIndex);

https://github.com/xamarin/xamarin-macios/blob/master/src/appkit.cs#L13796