amwx / FluentAvalonia

Control library focused on fluent design and bringing more WinUI controls into Avalonia
MIT License
1.05k stars 97 forks source link

AppWindow - How to add a button on the Titlebar #514

Closed Coloris closed 10 months ago

Coloris commented 10 months ago

Describe the bug

No bug here, just seeking assistance with AppWindow.

I'm wondering if there's a method to add a button (to switch between light and dark modes), similar to what Visual Studio provides. Checked the sample app but can't figure out how the AutoCompleteBox was added there.

Screenshots

Desktop/Platform (please complete the following information):

timunie commented 10 months ago

@Coloris why do you open a question as bug report? That's not really fair tbh. Use Discussions for questions pls.

I think this is the magic code: https://github.com/amwx/FluentAvalonia/blob/30b4379a9c6a7fb2dde62442932e6bc985a23058/samples/FAControlsGallery/Views/MainWindow.axaml.cs#L23-L28

Coloris commented 10 months ago

Sorry, you can be sure that if I was aware that such tab existed i would have posted there !

timunie commented 10 months ago

All fine 👍