简体   繁体   中英

How to add a second row of toolbar using Xamarin.Mac

I have a split window controller with sidebar as follows:

Split Window Controller

I want to be able to click on the pencil icon in the toolbar and another row of toolbar shows up, like the Preview app:

second row of toolbar in Preview app

Is there a straight forward way to do this via Xcode and I'm missing something simple?

I tried adding two toolbars in the one window but that did nothing. I would really appreciate some help:)

Found the following tutorial that pretty much explains it in detail:

https://github.com/MicrosoftDocs/xamarin-docs/blob/live/docs/mac/platform/introduction-to-macos-sierra/modern-cocoa-apps.md

Under "Using Accessory View Controllers".

After days of searching I finally found the right resources (that's how its always like with Xamarin Mac lol)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM