Files
TradeBlotter/Scraps/BuyOptionsWindow.xaml
2024-02-23 06:58:53 -05:00

59 lines
2.6 KiB
XML

<Window x:Class="TradeBlotter.ViewModelHelper.BuyOptionsDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Buy Options Window" Height="320" Width="300"
MinHeight="10"
MinWidth="300"
ResizeMode="CanResizeWithGrip"
ShowInTaskbar="False"
WindowStartupLocation="CenterOwner"
>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Grid.Row="0">Shares Held:</Label>
<Label Grid.Column="0" Grid.Row="1">Price:</Label>
<Label Grid.Column="0" Grid.Row="2">Expiration Date:</Label>
<Label Grid.Column="0" Grid.Row="3">Contracts:</Label>
<Label Grid.Column="0" Grid.Row="4">Strike Price:</Label>
<Label Grid.Column="0" Grid.Row="5">Price On Expiration:</Label>
<Label Grid.Column="0" Grid.Row="6">Bid:</Label>
<Label Grid.Column="0" Grid.Row="7">Premium:</Label>
<Label Grid.Column="0" Grid.Row="8">Gain/Loss:</Label>
<Button Grid.Row="9" Content="Calculate" HorizontalAlignment="Stretch" Command="{Binding Path=CalculateCommand}" ></Button>
<Button Grid.Column="0" Grid.Row="10" IsCancel="True" Content="Cancel" HorizontalAlignment="Stretch" ></Button>
<TextBox Name="SharesHeld" Grid.Column="1" Grid.Row="0" Text="{Binding Path=SharesHeldValue, ValidatesOnDataErrors=True, UpdateSourceTrigger=LostFocus}">
<!--<TextBox.Text>
<Binding Path="SharesHeld" UpdateSourceTrigger="LostFocus"/>
</TextBox.Text>-->
</TextBox>
<TextBox Name="Price" Grid.Column="1" Grid.Row="1" />
<TextBox Name="ExpirationDate" Grid.Column="1" Grid.Row="2" />
<TextBox Name="Contracts" Grid.Column="1" Grid.Row="3"/>
<TextBox Name="StrikePrice" Grid.Column="1" Grid.Row="4" />
<TextBox Name="PriceOnExpiration" Grid.Column="1" Grid.Row="5" />
<TextBox Name="Bid" Grid.Column="1" Grid.Row="6" />
<TextBox Name="Premium" Grid.Column="1" Grid.Row="7" />
<TextBox Name="GainLoss" Grid.Column="1" Grid.Row="8" />
</Grid>
</Window>