67 lines
3.3 KiB
XML
67 lines
3.3 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.EditPositionDialog"
|
|
x:DataType="vm:EditPositionDialogViewModel"
|
|
Title="Edit 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="75">Purchase Price</Label>
|
|
<TextBox Margin="0,4,0,4" Grid.Row="4" Grid.Column="2" IsReadOnly="false" Text="{Binding Path=PurchasePrice, UpdateSourceTrigger=LostFocus, Mode=TwoWay}" />
|
|
|
|
<Label Grid.Row="5" Grid.Column="0">Initial Stop Limit</Label>
|
|
<TextBox Margin="0,4,0,4" Grid.Row="5" Grid.Column="2" MinWidth="35"
|
|
Text="{Binding Path=InitialStopLimit, UpdateSourceTrigger=LostFocus, Mode=TwoWay}">
|
|
</TextBox>
|
|
|
|
<CheckBox Grid.Row="6" Grid.Column="0" IsChecked="{Binding Path=SyncTrailingStop, UpdateSourceTrigger=LostFocus, Mode=TwoWay}">Sync Trailing Stop</CheckBox>
|
|
<Label Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="3" FontWeight="Bold" Content="{Binding Path=InitialStopRecommendation, Mode=OneWay}" />
|
|
|
|
<Label Grid.Row="8" Grid.Column="0">Trailing Stop</Label>
|
|
<TextBox Grid.Row="8" Grid.Column="2" MinWidth="35" Text="{Binding Path=TrailingStopLimit, UpdateSourceTrigger=LostFocus, Mode=TwoWay}"/>
|
|
|
|
<Button Command="{Binding Path=OkButtonClickCommand}" Content="_Ok" MinWidth="70" IsDefault="False" Margin="2" Grid.Row="9" Grid.RowSpan="2" Grid.Column="0"/>
|
|
<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>
|