/
posted by
Martin Mihaylov
on
Sep 05, 2008 (more than a year ago)
If you want to add an oval clip to your control, you can do it the following way: Xaml <Button x:Name="MyButton" Content="Click me!" Width="80" Height="30"> <Button.Clip> <EllipseGeometry RadiusX="35" RadiusY="13" Center="40,15"></EllipseGeometry> </Button.Clip> </Button> C# EllipseGeometry myClip = new EllipseGeometry(); myClip.Center = new Point( MyButton.Width / 2, MyButton.Height / 2 ); myClip ...