| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <windows:TradeAccountWindow x:Class="Muchinfo.MTPClient.Account.Views.RiskControlView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:convert="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
- Name="riskControl"
- Title="{Binding MessageTitle}"
- Width="250"
- Height="160"
- ShowInTaskbar="False"
- Style="{DynamicResource WindowBaseStyle}"
- Topmost="True">
- <Window.Resources>
- <convert:FontColorConvert x:Key="colorConvert" />
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="Margin" Value="0,3" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{Binding RiskLevel, Converter={StaticResource colorConvert}}" />
- </Style>
- </Window.Resources>
- <windows:TradeAccountWindow.Triggers>
- <EventTrigger RoutedEvent="Window.Loaded">
- <BeginStoryboard>
- <Storyboard x:Name="Storyboard1">
- <DoubleAnimation Duration="0:0:3"
- From="0"
- Storyboard.TargetName="riskControl"
- Storyboard.TargetProperty="Opacity"
- To="1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </windows:TradeAccountWindow.Triggers>
- <Grid>
- <Grid Margin="5"
- Background="Transparent"
- MouseDown="Grid_MouseDown">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Left"
- Text="{x:Static resource:Client_Resource.Text_AccountName}" />
- <TextBlock Grid.Row="0"
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{Binding LoginCode}" />
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- HorizontalAlignment="Left"
- Text="{x:Static resource:Client_Resource.Text_SetRiskRate}" />
- <TextBlock Grid.Row="1"
- Grid.Column="1"
- HorizontalAlignment="Left">
- <Run Text="{Binding MsgRate}" />
- <Run>%</Run>
- </TextBlock>
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- HorizontalAlignment="Left"
- Text="{x:Static resource:Client_Resource.Text_ActualRiskRate}" />
- <TextBlock Grid.Row="2"
- Grid.Column="1"
- HorizontalAlignment="Left">
- <Run Text="{Binding RealRate}" />
- <Run>%</Run>
- </TextBlock>
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- HorizontalAlignment="Left"
- Text="{x:Static resource:Client_Resource.Text_RiskLevel}"
- Visibility="{Binding IsRiskLevelVisible,
- Converter={StaticResource ToVisibilityConverter}}" />
- <TextBlock Grid.Row="3"
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{Binding RiskLevelString}"
- Visibility="{Binding IsRiskLevelVisible,
- Converter={StaticResource ToVisibilityConverter}}" />
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- HorizontalAlignment="Left"
- Text="{x:Static resource:Client_Resource.Text_Date}" />
- <TextBlock Grid.Row="4"
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{Binding Date}" />
- </Grid>
- </Grid>
- </windows:TradeAccountWindow>
|