WPF VB.Net Tutorial

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="GradientBrushResourceDemo" Height="300" Width="300">
    
                                     StartPoint="0, 0"
                             EndPoint="1, 1">
            
                
                
                
            

        
    

    
                       Foreground="{StaticResource brushGradient}">
            Gradient text
        
                           Foreground="{StaticResource brushGradient}">
            Of black, green, and gold
        
                           Foreground="{StaticResource brushGradient}">
            Makes an app pretty,
        
                           Foreground="{StaticResource brushGradient}">
            Makes an app bold.
        
    


//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Media
Imports System.Windows.Media.Imaging
Imports System.Windows.Shapes
Namespace WpfApplication1
  Public Partial Class Window1
    Inherits Window
    Public Sub New()
      Resources.Add("thicknessMargin", New Thickness(24, 12, 24, 23))
      InitializeComponent()
    End Sub
  End Class
End Namespace