Open grantjames opened 5 years ago
I've managed to fix this. I'll create a pull request when I get time.
In the meantime, the fix is to add MinWidth = 0
in the SegmentRadioButton
creation in the CreateSegmentedRadioButtonControl()
of SegmentedControlRenderer
.
How does it look with the fix?
I'm having trouble with some kind of minimum width restraint on UWP.
If I make the control narrow enough, the alignment of the text in each segment looks off because the width of each individual segment seems to have some sort of minimum width and so they end up overlapping.
Note I've used the UI inspector in the image above to outline the SegmentRadioButton showing how the next segment is overlapping it.
I've downloaded the repo and had a look at the code and I can't see any explicit reference to a width in the UWP project. I did notice there was a hard coded Padding property in SegmentedRadioButtonStyle.xaml but I've changed this and it doesn't seem to have any effect.
Any help with this would be greatly appreciated. Thank you.