62 lines
3.0 KiB
XML
62 lines
3.0 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
xmlns:vm="using:PortfolioManager.Dialogs"
|
|
x:Class="PortfolioManager.Dialogs.ClosePositionDialog"
|
|
x:DataType="vm:ClosePositionDialogViewModel"
|
|
Title="Close Position Dialog"
|
|
Width="640" Height="350"
|
|
CanResize="false"
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<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="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" />
|
|
<RowDefinition Height="25" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label FontWeight="Bold" FontSize="16" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Content="{Binding Path=CompanyName, Mode=OneWay}"/>
|
|
|
|
<Label Grid.Row="2" Grid.Column="0">Symbol</Label>
|
|
<TextBox Margin="0,4,0,4" Grid.Row="2" Grid.Column="2" IsReadOnly="true" MinWidth="35" Text="{Binding Path=Symbol, Mode=OneWay}"/>
|
|
|
|
<Label Grid.Row="3" Grid.Column="0" MinWidth="35">Purchase Date</Label>
|
|
<TextBox Margin="0,4,0,4" IsReadOnly="true" Grid.Row="3" Grid.Column="2" Text="{Binding Path=PurchaseDate, Mode=OneWay}"/>
|
|
|
|
<Label Grid.Row="4" Grid.Column="0" MinWidth="35">Sell Date</Label>
|
|
<TextBox Margin="0,4,0,4" IsReadOnly="false" Grid.Row="4" Grid.Column="2" Text="{Binding Path=SellDate, UpdateSourceTrigger=LostFocus, Mode=TwoWay}"/>
|
|
|
|
<Label Grid.Row="5" Grid.Column="0" MinWidth="35">Sell Price</Label>
|
|
<TextBox Margin="0,4,0,4" Grid.Row="5" Grid.Column="2" MinWidth="75" Text="{Binding Path=SellPrice, UpdateSourceTrigger=LostFocus, Mode=TwoWay}"/>
|
|
|
|
<TextBox Margin="0,4,0,4" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="5" Text="{Binding Path=Message, Mode=TwoWay}"/>
|
|
|
|
<Button Command="{Binding Path=OkButtonClickCommand}" Content="_Ok" MinWidth="70" IsDefault="False" Margin="2" Grid.Row="9" Grid.RowSpan="2" Grid.Column="0" IsEnabled="{Binding Path=OkEnabled, , Mode=TwoWay}"/>
|
|
<Button Command="{Binding Path=CancelButtonClick}" Content="_Cancel" MinWidth="70" IsCancel="True" Margin="2" Grid.Row="11" Grid.RowSpan="2" Grid.Column="0"/>
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
</Window>
|