DeanMc
Jan 26th, 2009, 02:46 PM
Consider the designer's Xaml?
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="VB:e Syntax Highlighter" Height="300" Width="371" WindowStartupLocation="CenterScreen" WindowStyle="SingleBorderWindow" ResizeMode="NoResize">
<Grid Width="349">
<ComboBox Height="23" Margin="12,0,0,12" Name="ComboBox1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="120" Background="WhiteSmoke">
<ComboBoxItem>Visual Basic</ComboBoxItem>
<ComboBoxItem>WPF Xaml</ComboBoxItem>
<ComboBoxItem>C#</ComboBoxItem>
</ComboBox>
<ComboBox Height="23" Margin="0,0,91,12" Name="ComboBox2" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="120" Background="WhiteSmoke" BorderBrush="#FF707070" BorderThickness="1">
<ComboBoxItem>HTML</ComboBoxItem>
<ComboBoxItem>BB Codebox</ComboBoxItem>
</ComboBox>
<Button Height="23" HorizontalAlignment="Left" Margin="264,0,0,12" Name="Button1" VerticalAlignment="Bottom" Width="75" Background="WhiteSmoke">Go!</Button>
<Label Height="28" HorizontalAlignment="Left" Margin="12,0,0,32" Name="Label1" VerticalAlignment="Bottom" Width="120" VerticalContentAlignment="Bottom">Source:</Label>
<Label Height="28" Margin="138,0,91,32" Name="Label2" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom">Output:</Label>
<RichTextBox Height="194" Margin="10,10,12,58" Name="RichTextBox1" Width="327" />
</Grid>
</Window>
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="VB:e Syntax Highlighter" Height="300" Width="371" WindowStartupLocation="CenterScreen" WindowStyle="SingleBorderWindow" ResizeMode="NoResize">
<Grid Width="349">
<ComboBox Height="23" Margin="12,0,0,12" Name="ComboBox1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="120" Background="WhiteSmoke">
<ComboBoxItem>Visual Basic</ComboBoxItem>
<ComboBoxItem>WPF Xaml</ComboBoxItem>
<ComboBoxItem>C#</ComboBoxItem>
</ComboBox>
<ComboBox Height="23" Margin="0,0,91,12" Name="ComboBox2" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="120" Background="WhiteSmoke" BorderBrush="#FF707070" BorderThickness="1">
<ComboBoxItem>HTML</ComboBoxItem>
<ComboBoxItem>BB Codebox</ComboBoxItem>
</ComboBox>
<Button Height="23" HorizontalAlignment="Left" Margin="264,0,0,12" Name="Button1" VerticalAlignment="Bottom" Width="75" Background="WhiteSmoke">Go!</Button>
<Label Height="28" HorizontalAlignment="Left" Margin="12,0,0,32" Name="Label1" VerticalAlignment="Bottom" Width="120" VerticalContentAlignment="Bottom">Source:</Label>
<Label Height="28" Margin="138,0,91,32" Name="Label2" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom">Output:</Label>
<RichTextBox Height="194" Margin="10,10,12,58" Name="RichTextBox1" Width="327" />
</Grid>
</Window>