Closed ChisterWu closed 1 year ago
hi, sir. Thanks for your share. In my Mac Project with maui, I want to define the background color of the NSTitleBar, and merge the titlebar and toolbar. I don't know how to get the object of the NSWindow, the top code is very helpful for me, but I don't know the define of the "_MainWindow", can you give me the detail description for _MainWindow. Thanks a lot.
Duplicate of #5478
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Description
I would want to open my mac app with full screen, but I haven't found any effective way. I seen a solution in other posts. The method is: ("NsApplication.SharedApplication.delegate.hostWindowForUIWindow(UIWindow.Self)") 1)using ObjCRuntime 2) get NsApplication (use Runtime.GetNSObject(Class.GetHandle("NSApplication")) ) 3)get NsApplication.SharedApplication(use NsApplication.PerformSelector(new Selector("sharedApplication")) ) 4)get delegate from NsApplication.SharedApplication (this is a property for NsApplication, you can use dllimport [objc_msgSend] from "/usr/lib/libobjc.dylib" and execute it to achieve)(IntPtr_objc_msgSend(vSharedApplication.Handle, delegeteSelector.Handle)) 5)call the "hostWindowForUIWindow:" method with delegate(this is a hide method I can't find in the develop document )(delegateObject.PerformSelector(hostWindowForUIWindowSelector, _MainWindow.Self);) 6)affter completing the above steps, I get a empty object, which make me unable to perform the next step(toggleFullScreen with the NsWindow)
Public API Changes