ToastWindow.xaml 1.5 KB

12345678910111213141516171819202122232425
  1. <Window x:Class="ivf_tl_Manage.Win.ToastWindow"
  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:ivf_tl_Manage.Win"
  7. mc:Ignorable="d"
  8. FontFamily="{StaticResource sourceHan}"
  9. WindowStyle="None"
  10. ShowInTaskbar="False"
  11. WindowStartupLocation="Manual"
  12. SizeToContent="WidthAndHeight"
  13. Background="Transparent"
  14. AllowsTransparency="True">
  15. <Grid Height="64" x:Name="rootGrid">
  16. <Grid.Background>
  17. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/SuccessToastIcon1.png"/>
  18. </Grid.Background>
  19. <!--<Image x:Name="image" Width="170" Height="64" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/SuccessToastIcon1.png"/>-->
  20. <StackPanel Margin="20" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  21. <Image x:Name="image1" Width="20" Height="20" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/SuccessToastIcon2.png"/>
  22. <TextBlock VerticalAlignment="Center" x:Name="textString" Margin="10 0 0 0" Text="{DynamicResource 0506}" FontWeight="Medium" Foreground="White" FontSize="20"/>
  23. </StackPanel>
  24. </Grid>
  25. </Window>