星火直播PC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MessageWindow.xaml 2.5KB

4 년 전
12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="XHZB.Desktop.MessageWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHZB.Desktop"
  7. mc:Ignorable="d"
  8. Title="星火微课" WindowStartupLocation="CenterScreen"
  9. WindowStyle="None" AllowsTransparency="True" WindowState="Normal"
  10. ShowInTaskbar="False" Topmost="True" ResizeMode="NoResize"
  11. d:DesignHeight="250" Width="600" Height="220" MouseMove="Window_MouseMove" BorderThickness="7">
  12. <Window.Effect>
  13. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  14. </Window.Effect>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="50"/>
  18. <RowDefinition Height="100*"/>
  19. <RowDefinition Height="70"/>
  20. </Grid.RowDefinitions>
  21. <Grid Grid.Row="0">
  22. <Label x:Name="lblTitle" Content="提示" HorizontalAlignment="Left" Margin="14,10,0,0" VerticalAlignment="Top" Foreground="#FF333333" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontSize="20" FontWeight="Bold"/>
  23. </Grid>
  24. <Grid Grid.Row="1">
  25. <TextBlock x:Name="tbkContent" Margin="20,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Foreground="#FF919191" Grid.Row="1" HorizontalAlignment="Center" Text=""/>
  26. </Grid>
  27. <Grid Grid.Row="2" Margin="0,0,0,0">
  28. <Border x:Name="borOk" Background="#2D8CF0" CornerRadius="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,30,20">
  29. <Button x:Name="BtnOK" Width="104" Height="42" Content="确定" FontSize="20" Background="#00000000" BorderBrush="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White" Cursor="Hand" Click="BtnOK_Click" IsDefault="True"/>
  30. </Border>
  31. <Border x:Name="borCancel" Background="#E5E5E5" CornerRadius="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,150,20">
  32. <Button x:Name="BtnCancel" Width="104" Height="42" Content="取消" FontSize="20" Background="#00000000" BorderBrush="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Cursor="Hand" Click="BtnCancel_Click"/>
  33. </Border>
  34. </Grid>
  35. </Grid>
  36. </Window>