MessagePromptView.xaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <windows:TradeAccountWindow x:Class="Muchinfo.MTPClient.Account.Views.MessagePromptView"
  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=Client.Resources"
  5. xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
  6. Name="messagePrompt"
  7. Title="{x:Static resource:Client_Resource.Message_Title}"
  8. Width="208"
  9. Height="104"
  10. ShowInTaskbar="False"
  11. Style="{DynamicResource WindowBaseStyle}"
  12. Topmost="True">
  13. <Window.Resources>
  14. <Style TargetType="{x:Type TextBlock}">
  15. <Setter Property="VerticalAlignment" Value="Center" />
  16. <Setter Property="Foreground" Value="{DynamicResource MuchinfoBrush105}" />
  17. </Style>
  18. </Window.Resources>
  19. <windows:TradeAccountWindow.Triggers>
  20. <EventTrigger RoutedEvent="Window.Loaded">
  21. <BeginStoryboard>
  22. <Storyboard x:Name="Storyboard1">
  23. <DoubleAnimation Duration="0:0:5"
  24. From="1"
  25. Storyboard.TargetName="messagePrompt"
  26. Storyboard.TargetProperty="Opacity"
  27. To="0" />
  28. </Storyboard>
  29. </BeginStoryboard>
  30. </EventTrigger>
  31. </windows:TradeAccountWindow.Triggers>
  32. <!--
  33. <Window.Triggers>
  34. <EventTrigger RoutedEvent="Window.Loaded">
  35. <BeginStoryboard>
  36. <Storyboard x:Name="Storyboard1">
  37. <DoubleAnimation Storyboard.TargetName="messagePrompt" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:5" />
  38. </Storyboard>
  39. </BeginStoryboard>
  40. </EventTrigger>
  41. </Window.Triggers>
  42. -->
  43. <Grid>
  44. <TextBlock Name="MessageInfo"
  45. HorizontalAlignment="Center"
  46. VerticalAlignment="Center"
  47. FontSize="14" />
  48. </Grid>
  49. </windows:TradeAccountWindow>