TipsWindow.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <Window x:Class="Muchinfo.MTPClient.Update.TipsWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="更新提示"
  5. Width="300"
  6. Height="200"
  7. AllowsTransparency="True"
  8. Background="Transparent"
  9. WindowStartupLocation="CenterScreen"
  10. WindowStyle="None">
  11. <Window.Resources>
  12. <Style TargetType="{x:Type TextBlock}">
  13. <Setter Property="Foreground" Value="#ff333333" />
  14. </Style>
  15. </Window.Resources>
  16. <Border Background="#ffffffff"
  17. BorderBrush="#ff2675C4"
  18. BorderThickness="4">
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="32" />
  22. <RowDefinition Height="*" />
  23. </Grid.RowDefinitions>
  24. <Grid Grid.Row="0" Background="#ff2675C4">
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="auto" />
  27. <ColumnDefinition Width="*" />
  28. <ColumnDefinition Width="auto" />
  29. </Grid.ColumnDefinitions>
  30. <Image Grid.Column="0"
  31. Width="24"
  32. Height="24"
  33. Source="{StaticResource WindowIconImageSource}" />
  34. <TextBlock Name="txt_Title"
  35. Grid.Column="1"
  36. Margin="5,0"
  37. VerticalAlignment="Center"
  38. FontSize="14"
  39. Foreground="#ffffffff"
  40. Text="更新提示" />
  41. <Button Name="bnt_Close"
  42. Grid.Column="2"
  43. Click="Bnt_Close_OnClick"
  44. Style="{StaticResource CloseButtonStyle}" />
  45. </Grid>
  46. <Grid Grid.Row="1"
  47. Grid.ColumnSpan="2"
  48. Margin="5">
  49. <Grid.RowDefinitions>
  50. <RowDefinition />
  51. <RowDefinition />
  52. <RowDefinition />
  53. </Grid.RowDefinitions>
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition />
  56. <ColumnDefinition />
  57. </Grid.ColumnDefinitions>
  58. <Grid Grid.RowSpan="2"
  59. Grid.ColumnSpan="2"
  60. Margin="20,10"
  61. ScrollViewer.VerticalScrollBarVisibility="Visible">
  62. <TextBlock x:Name="txt_content" TextWrapping="Wrap" />
  63. </Grid>
  64. <Button Grid.Row="2"
  65. Grid.Column="0"
  66. Width="80"
  67. Margin="10"
  68. Background="#ff2675C4"
  69. Click="Button_Click"
  70. Content="确定" />
  71. <Button Grid.Row="2"
  72. Grid.Column="1"
  73. Width="80"
  74. Margin="10"
  75. Background="#ff2675C4"
  76. Click="Button_Click_1"
  77. Content="取消" />
  78. </Grid>
  79. </Grid>
  80. </Border>
  81. </Window>