main
 1<ui:WPFDialog x:Class="solidware.financials.windows.ui.views.dialogs.AddNewStockSymbolDialog" xmlns:ui="clr-namespace:solidware.financials.windows.ui" x:TypeArguments="presenters:AddNewStockSymbolPresenter" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:presenters="clr-namespace:solidware.financials.windows.ui.presenters" Title="Watch New Stock" Width="400" Height="90" WindowStartupLocation="CenterOwner">
 2	<StackPanel>
 3		<StackPanel.Resources>
 4			<Style x:Key="Error">
 5				<Style.Triggers>
 6					<Trigger Property="Validation.HasError" Value="true">
 7						<Setter Property="Control.ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors)[0].ErrorContent}" />
 8						<Setter Property="Control.BorderBrush" Value="Red" />
 9						<Setter Property="Control.BorderThickness" Value="2" />
10					</Trigger>
11				</Style.Triggers>
12			</Style>
13		</StackPanel.Resources>
14		<DockPanel>
15			<Label Width="120px">Symbol:</Label>
16			<TextBox Text="{Binding Path=Symbol.Value, UpdateSourceTrigger=PropertyChanged,ValidatesOnDataErrors=True}" Style="{StaticResource Error}"></TextBox>
17		</DockPanel>
18		<DockPanel LastChildFill="False" HorizontalAlignment="Right">
19			<Button IsDefault="True" Command="{Binding Path=Add}">_Add</Button>
20			<Button IsCancel="True" Command="{Binding Path=Cancel}">_Cancel</Button>
21		</DockPanel>
22	</StackPanel>
23</ui:WPFDialog>