iNKORE-NET / UI.WPF.Modern

Modern (Fluent 2) styles and controls for your WPF applications
https://docs.inkore.net/ui-wpf-modern
GNU Lesser General Public License v2.1
326 stars 29 forks source link

How to disable close buttons on tabs #56

Closed ekdahl closed 2 months ago

ekdahl commented 2 months ago

Since switching to this library, there are close buttons on all tabs. I can't figure out how to disable or hide the close buttons on TabItems by default. What property should I change to do that?

NotYoojun commented 2 months ago

Hi there,

You can set ui:TabControlHelper.IsAddTabButtonVisible to false, or apply the Pivot style for yout TabControl.

For more information, please see our docs here.

About our docs

We're currently working on a documentation site that simplifies your learning curve. However this can be a huge process.

Before everything is done, you can view our unfinished works here. PRs are also welcomed.

When we finish everything, the docs will be available on docs.inkore.net

If it works out, please tell me so I can close this issue. If you have any questions, feel free to ask!

ekdahl commented 2 months ago

Thanks, that worked!

NotYoojun commented 2 months ago

Happy to hear that. Feel free to ask if you have any questions 😀

NotYoojun commented 1 month ago

Hi,

Please check: https://docs.inkore.net/ui-wpf-modern/components/navigation/tab-control