Advertisement
f0rkB0mb

XAML - Code

Dec 16th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.74 KB | None | 0 0
  1. <UserControl
  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. x:Class="SilverlightApplication1.Scroller"
  8. d:DesignWidth="0" d:DesignHeight="179">
  9. <UserControl.Resources>
  10. <Storyboard x:Name="ScrollSB" RepeatBehavior="Forever" >
  11. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Image0">
  12. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  13. <EasingDoubleKeyFrame KeyTime="0:0:13" Value="1300"/>
  14. </DoubleAnimationUsingKeyFrames>
  15. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Image1">
  16. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  17. <EasingDoubleKeyFrame KeyTime="0:0:13" Value="1300"/>
  18. </DoubleAnimationUsingKeyFrames>
  19. </Storyboard>
  20. </UserControl.Resources>
  21.  
  22. <Grid x:Name="LayoutRoot">
  23. <Image x:Name="Image0" Source="LOGO.png" Stretch="Fill" Margin="0,0,0,0" RenderTransformOrigin="0.0,0.0" >
  24. <Image.RenderTransform>
  25. <TransformGroup>
  26. <ScaleTransform/>
  27. <SkewTransform/>
  28. <RotateTransform/>
  29. <TranslateTransform/>
  30. </TransformGroup>
  31. </Image.RenderTransform>
  32. </Image>
  33. <Image x:Name="Image1" Source="LOGO.png" Stretch="Fill" Margin="-1366,0,0,0" HorizontalAlignment="Left" Width="1366" RenderTransformOrigin="0.0,0.0">
  34. <Image.RenderTransform>
  35. <TransformGroup>
  36. <ScaleTransform/>
  37. <SkewTransform/>
  38. <RotateTransform/>
  39. <TranslateTransform/>
  40. </TransformGroup>
  41. </Image.RenderTransform>
  42. </Image>
  43. </Grid>
  44. </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement