Rounded Rectangle Corner radius of 10 (X) and 25 (Y) : Rectangle « Windows Presentation Foundation « C# / C Sharp






Rounded Rectangle Corner radius of 10 (X) and 25 (Y)

Rounded Rectangle Corner radius of 10 (X) and 25 (Y)
     

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.RectangleExample"
    WindowTitle="Example">
  <Canvas>
  <TextBlock Margin="5,5,0,0">Corner radius of 10 (X) and 25 (Y).</TextBlock>
    <Rectangle Fill="Yellow" Stroke="Blue" RadiusX="10" RadiusY="25"
               Width="100" Height="60" Margin="5"  HorizontalAlignment="Left"></Rectangle>

  </Canvas>
</Page>

   
    
    
    
    
  








Related examples in the same category

1.A rectangle with curved cornersA rectangle with curved corners
2.Paints a rectangle with a grid pattern with VisualBrushPaints a rectangle with a grid pattern with VisualBrush
3.Paints a rectangle with a checkered pattern.Paints a rectangle with a checkered pattern.
4.Paints a rectangle with a grid patternPaints a rectangle with a grid pattern
5.Two of the drawing's rectangles are painted with an ImageBrush, creating a checkered pattern of imagesTwo of the drawing's rectangles are painted with an ImageBrush, creating a checkered pattern of images
6.Fill rectangle with Rectangle.Fill tag and LinearGradientBrushFill rectangle with Rectangle.Fill tag and LinearGradientBrush
7.Pulsating RectanglePulsating Rectangle
8.Rectangle Geometry DemoRectangle Geometry Demo
9.Rounded Rectangle Corner radius of 5Rounded Rectangle Corner radius of 5
10.Rounded Rectangle Corner radius of 100 (X) and 60 (Y)Rounded Rectangle Corner radius of 100 (X) and 60 (Y)
11.A rectangle with a rotate transformationA rectangle with a rotate transformation
12.Trigger animation with Rectangle.MouseEnterTrigger animation with Rectangle.MouseEnter
13.Trigger animation with Rectangle.MouseLeaveTrigger animation with Rectangle.MouseLeave
14.Rectangle.Fill with ImageBrush
15.Adding Rectangle to StackPanelAdding Rectangle to StackPanel
16.Create rectangles in WPF.Create rectangles in WPF.
17.Rectangle mouse down eventRectangle mouse down event
18.Rectangle mouse down previewRectangle mouse down preview
19.Change HeightChange Height
20.Change MinHeightChange MinHeight
21.Change MaxHeightChange MaxHeight