67 lines
3.8 KiB
XML
67 lines
3.8 KiB
XML
<Window x:Class="TradeBlotter.UIUtils.EditPositionDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Edit Position" Height="319.586" Width="196.793"
|
|
xmlns:wpfx="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
WindowStartupLocation="CenterScreen"
|
|
SizeToContent="WidthAndHeight"
|
|
MinWidth="200"
|
|
MinHeight="340"
|
|
WindowStyle="SingleBorderWindow"
|
|
ResizeMode="CanMinimize">
|
|
<wpfx:BusyIndicator Name="BusyBar" IsBusy="{Binding Path=BusyIndicator}" BusyContent="{Binding Path=BusyContent}">
|
|
<StackPanel Margin="5" Orientation="Vertical">
|
|
<Grid DockPanel.Dock="Left" Margin="0,2,4,2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="6" />
|
|
<ColumnDefinition Width="75*" />
|
|
<ColumnDefinition Width="6" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="20*" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="25" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="lblCompanyName" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"></Label>
|
|
|
|
<Label Name="lblSymbol" Grid.Row="2" Grid.Column="0">Symbol</Label>
|
|
<TextBox Name="txtSymbol" IsEnabled="False" Grid.Row="2" IsReadOnly="True" Grid.Column="2" MinWidth="75" AcceptsReturn="true">Symbol</TextBox>
|
|
|
|
<Label Name="lblPurchaseDate" Grid.Row="3" Grid.Column="0" MinWidth="75">Purchase Date</Label>
|
|
<DatePicker Name="dpPurchaseDate" IsEnabled="False" Grid.Row="3" Grid.Column="2"></DatePicker>
|
|
|
|
<Label Name="lblPurchasePrice" Grid.Row="4" Grid.Column="0" MinWidth="75">Purchase Price</Label>
|
|
<TextBox Name="txtPurchasePrice" Grid.Row="4" Grid.Column="2" LostFocus="txtPurchasePrice__OnLostFocusHandler" KeyDown="txtPurchasePrice_OnKeyDownHandler"></TextBox>
|
|
<Label FontWeight="Bold" FontSize="10" Name="lblPurchasePriceInstructions" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3">(enter purchase price then hit enter key)</Label>
|
|
|
|
<Label Name="lblInitialStop" Grid.Row="6" Grid.Column="0">Initial Stop</Label>
|
|
<TextBox Name="txtInitialStop" Grid.Row="6" Grid.Column="2" MinWidth="75" LostFocus="txtInitialStop__OnLostFocusHandler" KeyDown="txtInitialStop_OnKeyDownHandler">100.00</TextBox>
|
|
<CheckBox Name="cbSyncTrailingStop" Grid.Row="7" Grid.Column="0">Sync Trailing Stop</CheckBox>
|
|
<Label FontWeight="Bold" FontSize="10" Name="lblInitialStopInstructions" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="3">(enter initial stop then hit enter key)</Label>
|
|
<Label FontWeight="Bold" FontSize="10" Name="lblInitialStopRecommendation" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="3"></Label>
|
|
|
|
<Label Name="lblTrailingStop" Grid.Row="10" Grid.Column="0">Trailing Stop</Label>
|
|
<TextBox Name="txtTrailingStop" Grid.Row="10" Grid.Column="2" MinWidth="75" LostFocus="txtTrailingStop__OnLostFocusHandler" KeyDown="txtTrailingStop_OnKeyDownHandler">100.00</TextBox>
|
|
<Label FontWeight="Bold" FontSize="10" Name="lblTrailingStopInstructions" Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="3">(enter trailing stop then hit enter key)</Label>
|
|
|
|
<Button Content="_Ok" MinWidth="75" IsDefault="False" Margin="2" Name="btnOk" Click="btnOk_Click" Grid.Row="12" Grid.Column="0"/>
|
|
<Button Content="_Cancel" MinWidth="75" IsCancel="True" Margin="2" Name="btnCancel" Click="btnCancel_Click" Grid.Row="12" Grid.Column="2"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</wpfx:BusyIndicator>
|
|
</Window>
|
|
|