WPF VB.Net Tutorial

  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="WpfApplication1.Window1" Title="FlowDirection Sample">
    
      
        LeftToRight
        RightToLeft
      
      
      
        
          this is a test
      
      

    

//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Documents
Namespace WpfApplication1
  Public Partial Class Window1
    Inherits Window
    Public Sub LR(sender As Object, e As RoutedEventArgs)
      tf1.FlowDirection = FlowDirection.LeftToRight
      txt1.Text = "FlowDirection is now " + tf1.FlowDirection.ToString()
    End Sub
    Public Sub RL(sender As Object, e As RoutedEventArgs)
      tf1.FlowDirection = FlowDirection.RightToLeft
      txt1.Text = "FlowDirection is now " + tf1.FlowDirection.ToString()
    End Sub
  End Class
End Namespace