FluentAvalonia icon indicating copy to clipboard operation
FluentAvalonia copied to clipboard

Cannot remove ListBoxItem margin

Open mysteryx93 opened this issue 2 years ago • 1 comments

I'm trying to override the ListBoxItem margin; but it's impossible because it's hardcoded instead of being set via style. My only option would be to replace the ContentPresenter altogether.

https://github.com/amwx/FluentAvalonia/blob/master/FluentAvalonia/Styling/BasicControls/ListBoxStyles.axaml#L76

mysteryx93 avatar Jul 30 '22 20:07 mysteryx93

There's the same issue with ComboBoxItem

Here's another one. RadioButton is hardcoded with a height of 32 that cannot be overriden. That's in fact the control padding. https://github.com/amwx/FluentAvalonia/blob/master/FluentAvalonia/Styling/BasicControls/RadioButtonStyles.axaml#L42

mysteryx93 avatar Aug 06 '22 00:08 mysteryx93

Apologies for the delay in response - These types of styling issues should be fixable once I get stuff updated to v2/Avalonia 11.0 since that should've fixed the local value in template priority issue. My goal is to get a preview package out in early September. For now in the stable 1.x package, you'll have to replace the entire template to override that resource.

amwx avatar Aug 23 '22 02:08 amwx