❔ Issues applying Padding in WPF
I have the following xaml code for a HamburgerMenu.
Dont wonder about weird choice of Images / Icons, those are just placeholders.
it looks as desired but it seems I applied the padding wrong / in a bad way, cuz it's possible to click on the Border (highlighted blue on hover) rather than on a radio button which is very annonying. I don't want the Border to be visible at all or clickable, I want any click in there to be on the RadioButton. What am I doing wrong?
I did it how I am used to in webdev, I put an element (border in this case) around it which should act as an empty div container pretty much and applied padding on that but it's not working as expected.
Also when hovering the HamburgerMenuImageItems "Filtern" and "Sortieren" I can see the Border getting highlighted blue on hover there too.
2 Replies
you can think of padding as being part of the control, while margins are not
also im not sure what you mean, you added a border but you dont want it to be visible? then why add it?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.