MainWindow.xaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="Showlicense.MainWindow"
  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. mc:Ignorable="d"
  7. Title="LicenseShow" WindowStyle="None"
  8. Height="200"
  9. Width="360" >
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <Border x:Name="HeaderBar" Height="36"
  17. Background="#FF7BC3FF" Grid.Row="0" Mouse.MouseMove="Window_MouseMove">
  18. <Grid>
  19. <TextBlock HorizontalAlignment="Left"
  20. VerticalAlignment="Center"
  21. Text="{Binding Title}"
  22. Foreground="White"
  23. FontWeight="Bold"
  24. FontSize="14" Margin="10"/>
  25. <Button HorizontalAlignment="Right" Background="Transparent" Margin="7" BorderThickness="0" Click="Button_Click">
  26. <Image Source="./Images/CloseMessageBox.png" />
  27. </Button>
  28. </Grid>
  29. </Border>
  30. <TextBox Grid.Row="1" HorizontalAlignment="Center"
  31. VerticalAlignment="Center"
  32. TextWrapping="Wrap"
  33. FontSize="14" BorderThickness="0"
  34. Text="{Binding Text,Mode=OneWay}"/>
  35. </Grid>
  36. </Window>