WPF C#

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.RectangleExample"
    WindowTitle="Example">
  
    
      
        
          
          
        
      

    
    Horizontal Linear Gradient