MessageInfoView.xaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <windows:TradeAccountWindow x:Class="Muchinfo.MTPClient.Account.Views.MessageInfoView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Muchinfo.MTPClient.Resources"
  5. xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Muchinfo.MTPClient.Infrastructure"
  6. Title="{Binding Title}"
  7. Width="500"
  8. Height="380"
  9. ShowInTaskbar="False"
  10. Style="{DynamicResource WindowBaseStyle}"
  11. WindowStartupLocation="CenterOwner">
  12. <Window.Resources>
  13. <Style TargetType="{x:Type TextBlock}">
  14. <Setter Property="VerticalAlignment" Value="Center" />
  15. <Setter Property="Foreground" Value="{DynamicResource MuchinfoBrush105}" />
  16. </Style>
  17. </Window.Resources>
  18. <Grid Margin="15,15,15,10">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto" />
  21. <RowDefinition Height="auto" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="auto" />
  24. </Grid.RowDefinitions>
  25. <StackPanel Grid.Row="0"
  26. Margin="0,0,0,12"
  27. Orientation="Horizontal">
  28. <TextBlock Text="{x:Static resource:Muchinfo_Resource.Text_ReleascDates}" />
  29. <TextBlock Text="{Binding CurrentAnnouncement.PublishDate, StringFormat=\{0:yyyy-MM-dd \}}" />
  30. </StackPanel>
  31. <StackPanel Grid.Row="1"
  32. Margin="0,0,0,12"
  33. Orientation="Horizontal">
  34. <TextBlock Text="{x:Static resource:Muchinfo_Resource.Text_Theme}" />
  35. <TextBlock Text="{Binding CurrentAnnouncement.Title}" TextWrapping="Wrap" />
  36. </StackPanel>
  37. <Grid Grid.Row="2" Margin="0,0,0,12">
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition Width="auto" />
  40. <ColumnDefinition Width="*" />
  41. </Grid.ColumnDefinitions>
  42. <TextBlock Grid.Column="0"
  43. VerticalAlignment="Top"
  44. Text="{x:Static resource:Muchinfo_Resource.Text_Content}" />
  45. <Border Grid.Column="1"
  46. Background="{DynamicResource MuchinfoBrush82}"
  47. BorderBrush="{DynamicResource MuchinfoBrush43}"
  48. BorderThickness="1">
  49. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  50. <TextBlock Margin="10"
  51. VerticalAlignment="Top"
  52. Foreground="{DynamicResource MuchinfoBrush106}"
  53. Text="{Binding CurrentAnnouncement.Content}"
  54. TextWrapping="Wrap" />
  55. </ScrollViewer>
  56. </Border>
  57. </Grid>
  58. <StackPanel Grid.Row="3"
  59. HorizontalAlignment="Center"
  60. Orientation="Horizontal">
  61. <Button Width="82"
  62. Height="28"
  63. Background="{DynamicResource MuchinfoBrush52}"
  64. BorderBrush="{DynamicResource MuchinfoBrush22}"
  65. Command="{Binding ReturnCommand}"
  66. Content="{x:Static resource:Muchinfo_Resource.Button_Last}"
  67. IsEnabled="{Binding ReturnIsEnabled}"
  68. Style="{DynamicResource CommonButtonStyle}" />
  69. <Button Width="82"
  70. Height="28"
  71. Margin="82,0,0,0"
  72. Background="{DynamicResource MuchinfoBrush52}"
  73. BorderBrush="{DynamicResource MuchinfoBrush22}"
  74. Command="{Binding NextCommand}"
  75. Content="{x:Static resource:Muchinfo_Resource.Button_Next}"
  76. IsEnabled="{Binding NextIsEnabled}"
  77. Style="{DynamicResource CommonButtonStyle}" />
  78. </StackPanel>
  79. </Grid>
  80. </windows:TradeAccountWindow>