Jaya icon indicating copy to clipboard operation
Jaya copied to clipboard

Use global menu and custom window border when platform supports global menu exporting

Open kekekeks opened this issue 4 years ago • 2 comments

Maximized window of adapted application: изображение

Maximized window of Jaya: изображение

kekekeks avatar Oct 24 '19 18:10 kekekeks

@kekekeks Do you have any example pointing such implementation? I will be glad to implement it. And thanks for taking a look at my project.

waliarubal avatar Oct 24 '19 18:10 waliarubal

Recent Avalonia builds have support for global menu integration. Such menu can be declared like this: https://github.com/AvaloniaUI/Avalonia/blob/7dc95d5644bd3b14d2760cb664599e24fc239344/samples/ControlCatalog/MainWindow.xaml#L12

There is also NativeMenu.IsMenuExported attached property that becomes true when there is platform support for the global menu bar.

For Linux the support for global menu can be enabled like this: https://github.com/AvaloniaUI/Avalonia/blob/7dc95d5644bd3b14d2760cb664599e24fc239344/samples/ControlCatalog.NetCore/Program.cs#L61

kekekeks avatar Oct 24 '19 19:10 kekekeks