Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. enter code here
  2.  
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:system="clr-namespace:System;assembly=mscorlib"
  6. xmlns:Local="clr-namespace:screensaver"
  7. xmlns:viewModels="clr-namespace:screensaver.ViewModels"
  8. xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  9. Title="MainWindow" Background="Black" Height="650" Width="750">
  10. <Window.Resources>
  11. <Storyboard x:Key="Storyboard">
  12. <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.ClipToBounds)" Storyboard.TargetName="image">
  13. <DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
  14. </BooleanAnimationUsingKeyFrames>
  15. <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.SnapsToDevicePixels)" Storyboard.TargetName="image">
  16. <DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
  17. </BooleanAnimationUsingKeyFrames>
  18. <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)" Storyboard.TargetName="grid">
  19. <EasingPointKeyFrame KeyTime="0" Value="0.5,0.5"/>
  20. <EasingPointKeyFrame KeyTime="0:0:1" Value="0.5,0.5"/>
  21. <EasingPointKeyFrame KeyTime="0:0:2" Value="0.5,0.5"/>
  22. <EasingPointKeyFrame KeyTime="0:0:3" Value="0.5,0.5"/>
  23. <EasingPointKeyFrame KeyTime="0:0:4" Value="0.5,0.5"/>
  24. </PointAnimationUsingKeyFrames>
  25. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="grid">
  26. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  27. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
  28. <EasingDoubleKeyFrame KeyTime="0:0:2" Value="-1"/>
  29. <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-1"/>
  30. <EasingDoubleKeyFrame KeyTime="0:0:4" Value="1"/>
  31.  
  32. </DoubleAnimationUsingKeyFrames>
  33.  
  34. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="grid">
  35. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  36. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
  37. </DoubleAnimationUsingKeyFrames>
  38. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="grid">
  39. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  40. <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-1"/>
  41. <EasingDoubleKeyFrame KeyTime="0:0:2" Value="-1"/>
  42. <EasingDoubleKeyFrame KeyTime="0:0:3" Value="1"/>
  43. </DoubleAnimationUsingKeyFrames>
  44. <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.IsSharedSizeScope)" Storyboard.TargetName="image">
  45. <DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
  46. <DiscreteBooleanKeyFrame KeyTime="0:0:4" Value="True"/>
  47. </BooleanAnimationUsingKeyFrames>
  48. </Storyboard>
  49. </Window.Resources>
  50. <Window.Triggers>
  51. <EventTrigger RoutedEvent="FrameworkElement.Loaded">
  52. <BeginStoryboard Storyboard="{StaticResource Storyboard}"/>
  53. </EventTrigger>
  54. </Window.Triggers>
  55. <Window.DataContext>
  56. <viewModels:MainWindowVm></viewModels:MainWindowVm>
  57. </Window.DataContext>
  58. <Window.InputBindings>
  59. <KeyBinding Command="{Binding ButtonCommand}" Key="Enter"></KeyBinding>
  60. </Window.InputBindings>
  61. <Grid x:Name="grid">
  62. <Grid.LayoutTransform>
  63. <TransformGroup>
  64. <ScaleTransform/>
  65. <SkewTransform/>
  66. <RotateTransform/>
  67. <TranslateTransform/>
  68. </TransformGroup>
  69. </Grid.LayoutTransform>
  70. <Grid.RenderTransform>
  71. <TransformGroup>
  72. <ScaleTransform/>
  73. <SkewTransform/>
  74. <RotateTransform/>
  75. <TranslateTransform/>
  76. </TransformGroup>
  77. </Grid.RenderTransform>
  78. <Grid.Style>
  79. <Style TargetType="{x:Type Grid}"/>
  80. </Grid.Style>
  81. <Image x:Name="image" Source ="/image/arroweye.jpg" Margin="14,12,523,513" RenderTransformOrigin="1,1"></Image>
  82. <TextBlock Text="Please Enter" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden">
  83. <TextBlock.Style>
  84. <Style TargetType="{x:Type TextBlock}">
  85. <Style.Triggers>`enter code here`
  86. <Trigger Property="IsMouseOver" Value="True">
  87. <Setter Property="Background" Value="Aqua"/>
  88. </Trigger>
  89. </Style.Triggers>
  90. </Style>
  91. </TextBlock.Style>
  92. </TextBlock>
  93. <TextBlock Text="Please Scan Your Badge" FontSize="28" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden">
  94. <TextBlock.Style>
  95. <Style TargetType="{x:Type TextBlock}">
  96. <Setter Property="Foreground" Value="Blue"></Setter>
  97. <Style.Triggers>
  98. <Trigger Property="IsMouseOver" Value="True">
  99. <Setter Property="Foreground" Value="Red" />
  100. <Setter Property="TextDecorations" Value="Underline" />
  101. </Trigger>
  102. </Style.Triggers>
  103. </Style>
  104. </TextBlock.Style>
  105. </TextBlock>
  106. </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement