c# - WPF: Create half elliptical button -


I do not think that's quite possible, but it's worth seeing what people say you do. I'm trying to create a half-oval button in C # (not XAML, which can be from another curve ball) If I wanted a pre-set size for the button, then I used to use just the images or something similar, but since the size change does not happen here: here

  1. < P> I have an oval with X-radius and Y-radius (or width and height, multiplied by 2 times).

  2. I want two buttons to fill the whole alley, each raised half of an oval.

  3. I do not want a rectangular button that extends beyond the oval to paste the parent, I want to leave only one half of the oval button and set the actual elliptical button.

  4. If this button can not be completed using the button, but some other controls, then I want to be able to act like that button as a button .

Any help or advice or hint will be very helpful.

Before I answer this, I would love to know that you have a Why is there a need to escape? You're almost certainly using XAML indirectly, so why not use it - your button should be a piece of cake! This is what it is for!

It's like trying to build a house with sticky tape when you are standing near bricks and mortars! :)


Comments