WPF VB.Net Tutorial

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WpfApplication1" Height="300" Width="300" WindowStartupLocation="CenterScreen">
  
    
      
        Fancy Button!
        
                             MouseDown ="outerEllipse_MouseDown"
                   PreviewMouseDown ="outerEllipse_PreviewMouseDown"
                   Width ="50" Cursor="Hand" Canvas.Left="25" Canvas.Top="12"/>
                                  Canvas.Top="17" Canvas.Left="32"/>
        
      

    
  

//File:Window.xaml.vb
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Input
Imports System.Windows.Media
Imports System.Windows.Media.Imaging
Imports System.Windows.Shapes
Namespace WpfApplication1
  Public Partial Class MainWindow
    Inherits System.Windows.Window
    Public Sub New()
      InitializeComponent()
    End Sub
    Public Sub btnClickMe_Clicked(sender As Object, e As RoutedEventArgs)
      Console.WriteLine("Button Click event fired!")
    End Sub
    Public Sub outerEllipse_MouseDown(sender As Object, e As RoutedEventArgs)
      Console.WriteLine("MouseDown event fired!")
      e.Handled = False
    End Sub
    Public Sub outerEllipse_PreviewMouseDown(sender As Object, e As RoutedEventArgs)
      Console.WriteLine("PreviewMouseDown event fired!")
      e.Handled = False
    End Sub
  End Class
End Namespace