sskodje / wpfchrometabs-mvvm

A tab control based on WPF chrome tabs, modified to work with the MVVM pattern
MIT License
256 stars 60 forks source link

Unable to change the size of the add tab button. #38

Closed frankdekker closed 2 years ago

frankdekker commented 2 years ago

Currently it is possible to custom style the add tab button, but the size is hardcoded to new Size(20, 12). Line 111 in ChromeTabPanel.cs.

I added properties AddButtonWidth and AddButtonHeight to ChromeTabControl.cs, but my skills are kinda lacking to get this to work inside the ChromeTabPanel.cs.

You have some pointers how to update the _addButtonSize property inside ChromeTabPanel.cs when the width or height is set from xaml?

sskodje commented 2 years ago

I'm sorry it took a while to respond, i merged in your changes now 👍