| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <windows1:WindowBase x:Class="Muchinfo.MTPClient.Account.Views.SystemAnnouncementView"
- 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=Muchinfo.MTPClient.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Muchinfo.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Muchinfo.MTPClient.Resources"
- xmlns:windows1="clr-namespace:Muchinfo.WPF.Controls.Windows;assembly=Muchinfo.WPF.Controls"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="announcementWindow"
- Title="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_Title}"
- Width="700"
- Height="500"
- ShowInTaskbar="False"
- Style="{DynamicResource WindowBaseStyle}"
- d:DesignHeight="300"
- d:DesignWidth="500"
- mc:Ignorable="d">
- <Window.Resources>
- <convert:FontColorConvert x:Key="colorConvert" />
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="Foreground" Value="{DynamicResource MuchinfoBrush105}" />
- </Style>
- </Window.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Muchinfo_Resource.Content_Busy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="5*" />
- <RowDefinition Height="40" />
- <RowDefinition Height="3*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <dataGrid:MuchinfoDataGrid Grid.Row="0"
- ItemsSource="{Binding CurrentPageMessages}"
- SelectedItem="{Binding CurrentAnnouncementMessage,
- Mode=TwoWay}"
- Style="{DynamicResource NoticeMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="50"
- MinWidth="50"
- Binding="{Binding ReadStatusString}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_State}" />
- <DataGridTextColumn Width="*"
- MinWidth="100"
- Binding="{Binding Title}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_Theme}" />
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding PubExchName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_Publisher}" />
- <DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding PublishDateString}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.Content_ReleascDates}" />
- <!--
- 隐藏过期时间<DataGridTextColumn Width="*"
- MinWidth="80"
- Binding="{Binding ValidDateString}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_ValidDate}" />
- -->
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <StackPanel Grid.Row="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="30"
- Margin="10,0,10,0"
- Command="{Binding PrevCommand}"
- Content="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_PrevPage}"
- Style="{DynamicResource CommonButtonStyle}" />
- <TextBlock Margin="10,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding CurrentPageIndex}" />
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="/" />
- <TextBlock Margin="10,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding TotalPageCount}" />
- <Button Width="82"
- Height="30"
- Margin="10,0,10,0"
- Command="{Binding NextCommand}"
- Content="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_NextPage}"
- Style="{DynamicResource CommonButtonStyle}" />
- <TextBlock Margin="10,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_GoTo}" />
- <TextBox Name="pageCount"
- Width="50"
- Height="20"
- Margin="10,0,10,0" />
- <TextBlock Margin="10,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_Page}" />
- <Button Width="82"
- Height="30"
- Margin="10,0,10,0"
- Command="{Binding QueryCommand}"
- CommandParameter="{Binding ElementName=pageCount}"
- Content="{x:Static resource:Muchinfo_Resource.SystemAnnouncementView_Go}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <Border Grid.Row="2"
- BorderBrush="{DynamicResource MuchinfoBrush67}"
- BorderThickness="1">
- <ScrollViewer Margin="10,0"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <Grid Margin="0,10,0,10">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="15"
- Foreground="{Binding AnnouncementRiskLevel,
- Converter={StaticResource colorConvert}}"
- Text="{Binding AnnouncementTitle}" />
- <TextBlock Grid.Row="1"
- Margin="10"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Foreground="{Binding AnnouncementRiskLevel,
- Converter={StaticResource colorConvert}}"
- Text="{Binding AnnouncementContent}"
- TextWrapping="Wrap" />
- </Grid>
- </ScrollViewer>
- </Border>
- <StackPanel Grid.Row="3"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <CheckBox Margin="0"
- VerticalAlignment="Center"
- Content="{x:Static resource:Muchinfo_Resource.Notice_NoShowSameNotice}"
- IsChecked="{Binding IsChecked,
- Mode=TwoWay}"
- Style="{DynamicResource mtpCheckBoxStyle}" />
- <Button Width="82"
- Height="30"
- Margin="10,0,10,0"
- VerticalAlignment="Center"
- Command="{Binding ClosedCommand}"
- CommandParameter="{Binding ElementName=announcementWindow}"
- Content="{x:Static resource:Muchinfo_Resource.Button_Close}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </Grid>
- </xctk:BusyIndicator>
- </windows1:WindowBase>
|