WpfRectangular control ( WPF )

Objectives:
  • Rectangle Control
  • Point
  • RadiantGradient Brush
    • GradientStops
    • GradientOrigin
  • Grid Column Definition
    • <Grid.ColumnDefinitions>
      <ColumnDefinition />
      <ColumnDefinition />
Step:1 Create a New project

Step:2 Edit MainWindow.xaml, add two more grid controls. Please use this code to edit this page.

Using Column Definition add two column definition that will hold the two grids we created before.

Click OK. In the illustration below you will notice that as you create column index in grid1 the default area will be displayed in design pane.

 

Step:3 In this example we will use rectangle and gradient brush . The scope around this api is shown below.

Step:4Edit code in MainWindow.xaml.cs ( MainWindwo.xaml.cs.txt )

 Point API in windows

 

Step:5 Run time view