Files
StockSharp/Samples/Common/SampleCurrency/MainWindow.xaml
T
2015-01-10 23:36:31 +03:00

30 lines
1.4 KiB
XML

<Window x:Class="SampleCurrency.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
Title="{x:Static loc:LocalizedStrings.XamlStr538}" Height="116" Width="300">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="26" />
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="{x:Static loc:LocalizedStrings.XamlStr193}" />
<ComboBox x:Name="SourceCurrencyType" Grid.Column="1" Grid.Row="0" />
<TextBox x:Name="Amount" Grid.Column="2" Grid.Row="0" TextAlignment="Right" Text="1" />
<Label Grid.Column="0" Grid.Row="1" Content="{x:Static loc:LocalizedStrings.XamlStr52}" />
<ComboBox x:Name="TargetCurrencyType" Grid.Column="1" Grid.Row="1" />
<Label x:Name="Result" Grid.Column="2" Grid.Row="1" FontWeight="Bold" Foreground="Red" HorizontalContentAlignment="Right" />
<Button x:Name="Convert" Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="2" Width="100" Height="22" Content="{x:Static loc:LocalizedStrings.Convert}" Click="ConvertClick" />
</Grid>
</Window>