| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <windows:TradeAccountWindow x:Class="Muchinfo.MTPClient.Account.Views.NoticeView"
- 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="noticeWindow"
- Width="250"
- Height="160"
- Background="{DynamicResource CommonBorderBrush}"
- ShowInTaskbar="False"
- Style="{DynamicResource WindowBaseStyle}"
- Topmost="True">
- <Window.Resources>
- <convert:FontColorConvert x:Key="colorConvert" />
- <convert:RiskLevelToVisibilityConverter x:Key="RiskLevelConvert" />
- <convert:RiskLevelToVisibilityDifConverter x:Key="RiskLevelDifConvert" />
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- <Style x:Key="RiskLevelTextBlock" TargetType="{x:Type TextBlock}">
- <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="noticeWindow"
- Storyboard.TargetProperty="Opacity"
- To="1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </windows:TradeAccountWindow.Triggers>
- <Grid MouseDown="Grid_MouseDown">
- <!--
- <Grid Margin="5"
- Background="Transparent"
- MouseDown="Grid_MouseDown">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.NoticeView_Theme}" />
- <TextBlock Grid.Row="0"
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{Binding NoticeTitle}" />
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.NoticeView_Publisher}" />
- <TextBlock Grid.Row="1"
- Grid.Column="1"
- HorizontalAlignment="Left">
- <Run Text="{Binding NoticePubExchName}" />
- </TextBlock>
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.NoticeView_PublishDate}" />
- <TextBlock Grid.Row="2"
- Grid.Column="1"
- HorizontalAlignment="Left">
- <Run Text="{Binding NoticePublishDateString}" />
- </TextBlock>
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.NoticeView_ValidDate}" />
- <TextBlock Grid.Row="3"
- Grid.Column="1"
- HorizontalAlignment="Left"
- Text="{Binding NoticeValidDateString}" />
- </Grid>
- -->
- <TextBlock Margin="5"
- VerticalAlignment="Center"
- Text="{Binding TITLE}"
- TextWrapping="Wrap"
- Visibility="{Binding RiskLevel,
- Converter={StaticResource RiskLevelDifConvert}}" />
- <TextBlock Margin="5"
- VerticalAlignment="Center"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- Style="{StaticResource ResourceKey=RiskLevelTextBlock}"
- Text="{Binding TITLE}"
- TextWrapping="Wrap"
- Visibility="{Binding RiskLevel,
- Converter={StaticResource RiskLevelConvert}}" />
- </Grid>
- </windows:TradeAccountWindow>
|