locked
'INTRO' Storyboard now working. RRS feed

  • Question

  • Hi, I was creating a WPF project and everything was going alright, now i realize that when i trigger Window.Loaded > INTRO begin, the intro doesn't seem to start as it should be (just the last 0.5 secons) (it's a 2 secs intro) if i change the trigger to  Window.MouseEnter, or Window.MouseMove the 2 seconds intro start, but of course this is not what i want, i want the storyboard to start as soon as the Window Loads, I don't know what could possibly be going wrong, this is the XAML:

    <Window
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
     x:Class="PantallaKiosco.MainWindow"
     x:Name="Window"
     Title="MainWindow"
     Width="1024" Height="768">
     <Window.Resources>
      <Style x:Key="Botón Mis Puntos" TargetType="{x:Type Button}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type Button}">
          <ControlTemplate.Resources>
           <Storyboard x:Key="BotónIsMouseOver">
            <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.ClipToBounds)" Storyboard.TargetName="viewport3D">
             <DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
            </BooleanAnimationUsingKeyFrames>
            <Rotation3DAnimationUsingKeyFrames Storyboard.TargetProperty="(Visual3D.Transform).(Transform3DGroup.Children)[2].(RotateTransform3D.Rotation)" Storyboard.TargetName="ModelContainer">
             <EasingRotation3DKeyFrame KeyTime="0">
              <EasingRotation3DKeyFrame.Value>
               <AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
              </EasingRotation3DKeyFrame.Value>
             </EasingRotation3DKeyFrame>
             <EasingRotation3DKeyFrame KeyTime="0:0:0.2">
              <EasingRotation3DKeyFrame.Value>
               <AxisAngleRotation3D Axis="1,0,0" Angle="90"/>
              </EasingRotation3DKeyFrame.Value>
             </EasingRotation3DKeyFrame>
             <EasingRotation3DKeyFrame KeyTime="0:0:0.4">
              <EasingRotation3DKeyFrame.Value>
               <AxisAngleRotation3D Axis="1,0,0" Angle="180"/>
              </EasingRotation3DKeyFrame.Value>
             </EasingRotation3DKeyFrame>
             <EasingRotation3DKeyFrame KeyTime="0:0:0.6">
              <EasingRotation3DKeyFrame.Value>
               <AxisAngleRotation3D Axis="1,0,0" Angle="270"/>
              </EasingRotation3DKeyFrame.Value>
             </EasingRotation3DKeyFrame>
             <EasingRotation3DKeyFrame KeyTime="0:0:0.8">
              <EasingRotation3DKeyFrame.Value>
               <AxisAngleRotation3D Axis="1,0,0" Angle="360"/>
              </EasingRotation3DKeyFrame.Value>
             </EasingRotation3DKeyFrame>
            </Rotation3DAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Visual3D.Transform).(Transform3DGroup.Children)[1].(ScaleTransform3D.ScaleZ)" Storyboard.TargetName="ModelContainer">
             <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1"/>
             <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0.828"/>
            </DoubleAnimationUsingKeyFrames>
           </Storyboard>
          </ControlTemplate.Resources>
          <Grid>
           <Viewport3D x:Name="viewport3D">
            <Viewport3D.Camera>
             <PerspectiveCamera FieldOfView="45" FarPlaneDistance="106.60753644930361" LookDirection="0,0,-35.5358454831012" NearPlaneDistance="0.1" Position="0,0,35.5358454831012" UpDirection="0,1,0"/>
            </Viewport3D.Camera>
            <ModelVisual3D x:Name="ModelContainer">
             <ModelVisual3D.Transform>
              <Transform3DGroup>
               <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
               <ScaleTransform3D ScaleZ="1"/>
               <RotateTransform3D>
                <RotateTransform3D.Rotation>
                 <AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
                </RotateTransform3D.Rotation>
               </RotateTransform3D>
               <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
               <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
              </Transform3DGroup>
             </ModelVisual3D.Transform>
             <ModelVisual3D.Content>
              <GeometryModel3D x:Name="Model" d:Bounds="-14.7194291494952,-10,0,29.4388582989904,20,0">
               <GeometryModel3D.BackMaterial>
                <DiffuseMaterial Brush="{DynamicResource {x:Static SystemColors.DesktopBrushKey}}"/>
               </GeometryModel3D.BackMaterial>
               <GeometryModel3D.Geometry>
                <MeshGeometry3D Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1" Positions="-14.719429,-10,0 -11.448445,-10,0 -8.1774606,-10,0 -4.9064764,-10,0 -1.6354921,-10,0 1.6354921,-10,0 4.9064764,-10,0 8.1774606,-10,0 11.448445,-10,0 14.719429,-10,0 -14.719429,-7.7777778,0 -11.448445,-7.7777778,0 -8.1774606,-7.7777778,0
    -4.9064764,-7.7777778,0 -1.6354921,-7.7777778,0 1.6354921,-7.7777778,0 4.9064764,-7.7777778,0 8.1774606,-7.7777778,0 11.448445,-7.7777778,0 14.719429,-7.7777778,0 -14.719429,-5.5555556,0 -11.448445,-5.5555556,0 -8.1774606,-5.5555556,0 -4.9064764,-5.5555556,0 -1.6354921,-5.5555556,0 1.6354921,-5.5555556,0
    4.9064764,-5.5555556,0 8.1774606,-5.5555556,0 11.448445,-5.5555556,0 14.719429,-5.5555556,0 -14.719429,-3.3333333,0 -11.448445,-3.3333333,0 -8.1774606,-3.3333333,0 -4.9064764,-3.3333333,0 -1.6354921,-3.3333333,0 1.6354921,-3.3333333,0 4.9064764,-3.3333333,0 8.1774606,-3.3333333,0 11.448445,-3.3333333,0
    14.719429,-3.3333333,0 -14.719429,-1.1111111,0 -11.448445,-1.1111111,0 -8.1774606,-1.1111111,0 -4.9064764,-1.1111111,0 -1.6354921,-1.1111111,0 1.6354921,-1.1111111,0 4.9064764,-1.1111111,0 8.1774606,-1.1111111,0 11.448445,-1.1111111,0 14.719429,-1.1111111,0 -14.719429,1.1111111,0 -11.448445,1.1111111,0
    -8.1774606,1.1111111,0 -4.9064764,1.1111111,0 -1.6354921,1.1111111,0 1.6354921,1.1111111,0 4.9064764,1.1111111,0 8.1774606,1.1111111,0 11.448445,1.1111111,0 14.719429,1.1111111,0 -14.719429,3.3333333,0 -11.448445,3.3333333,0 -8.1774606,3.3333333,0 -4.9064764,3.3333333,0 -1.6354921,3.3333333,0
    1.6354921,3.3333333,0 4.9064764,3.3333333,0 8.1774606,3.3333333,0 11.448445,3.3333333,0 14.719429,3.3333333,0 -14.719429,5.5555556,0 -11.448445,5.5555556,0 -8.1774606,5.5555556,0 -4.9064764,5.5555556,0 -1.6354921,5.5555556,0 1.6354921,5.5555556,0 4.9064764,5.5555556,0 8.1774606,5.5555556,0
    11.448445,5.5555556,0 14.719429,5.5555556,0 -14.719429,7.7777778,0 -11.448445,7.7777778,0 -8.1774606,7.7777778,0 -4.9064764,7.7777778,0 -1.6354921,7.7777778,0 1.6354921,7.7777778,0 4.9064764,7.7777778,0 8.1774606,7.7777778,0 11.448445,7.7777778,0 14.719429,7.7777778,0 -14.719429,10,0
    -11.448445,10,0 -8.1774606,10,0 -4.9064764,10,0 -1.6354921,10,0 1.6354921,10,0 4.9064764,10,0 8.1774606,10,0 11.448445,10,0 14.719429,10,0" TextureCoordinates="0,147.289 24.089,147.289 48.178,147.289 72.267,147.289 96.356,147.289 120.445,147.289 144.534,147.289 168.623,147.289 192.712,147.289 216.801,147.289 0,130.92356 24.089,130.92356 48.178,130.92356 72.267,130.92356 96.356,130.92356 120.445,130.92356 144.534,130.92356 168.623,130.92356 192.712,130.92356 216.801,130.92356 0,114.55811 24.089,114.55811 48.178,114.55811
    72.267,114.55811 96.356,114.55811 120.445,114.55811 144.534,114.55811 168.623,114.55811 192.712,114.55811 216.801,114.55811 0,98.192667 24.089,98.192667 48.178,98.192667 72.267,98.192667 96.356,98.192667 120.445,98.192667 144.534,98.192667 168.623,98.192667 192.712,98.192667 216.801,98.192667 0,81.827222 24.089,81.827222 48.178,81.827222 72.267,81.827222 96.356,81.827222 120.445,81.827222
    144.534,81.827222 168.623,81.827222 192.712,81.827222 216.801,81.827222 0,65.461778 24.089,65.461778 48.178,65.461778 72.267,65.461778 96.356,65.461778 120.445,65.461778 144.534,65.461778 168.623,65.461778 192.712,65.461778 216.801,65.461778 0,49.096333 24.089,49.096333 48.178,49.096333 72.267,49.096333 96.356,49.096333 120.445,49.096333 144.534,49.096333 168.623,49.096333 192.712,49.096333
    216.801,49.096333 0,32.730889 24.089,32.730889 48.178,32.730889 72.267,32.730889 96.356,32.730889 120.445,32.730889 144.534,32.730889 168.623,32.730889 192.712,32.730889 216.801,32.730889 0,16.365444 24.089,16.365444 48.178,16.365444 72.267,16.365444 96.356,16.365444 120.445,16.365444 144.534,16.365444 168.623,16.365444 192.712,16.365444 216.801,16.365444 0,0 24.089,0
    48.178,0 72.267,0 96.356,0 120.445,0 144.534,0 168.623,0 192.712,0 216.801,0" TriangleIndices="0 1 10 1 11 10 1 2 11 2 12 11 2 3 12 3 13 12 3 4 13 4 14 13 4 5 14 5 15 14 5 6 15 6 16 15 6 7 16 7 17 16 7 8 17 8 18 17 8 9 18 9 19 18 10 11 20 11 21 20 11 12 21 12 22 21 12 13 22 13 23 22 13 14 23 14 24 23 14 15 24 15 25 24 15 16 25 16 26 25 16 17 26 17 27 26 17 18 27 18 28 27 18 19 28 19 29 28 20 21 30 21 31 30 21 22 31 22 32 31 22 23 32 23 33 32 23 24 33 24 34 33 24 25 34 25 35 34 25 26 35 26 36 35 26 27 36 27 37 36 27 28 37 28 38 37 28 29 38 29 39 38 30 31 40 31 41 40 31 32 41 32 42 41 32 33 42 33 43 42 33 34 43 34 44 43 34 35 44 35 45 44 35 36 45 36 46 45 36 37 46 37 47 46 37 38 47 38 48 47 38 39 48 39 49 48 40 41 50 41 51 50 41 42 51 42 52 51 42 43 52 43 53 52 43 44 53 44 54 53 44 45 54 45 55 54 45 46 55 46 56 55 46 47 56 47 57 56 47 48 57 48 58 57 48 49 58 49 59 58 50 51 60 51 61 60 51 52 61 52 62 61 52 53 62 53 63 62 53 54 63 54 64 63 54 55 64 55 65 64 55 56 65 56 66 65 56 57 66 57 67 66 57 58 67 58 68 67 58 59 68 59 69 68 60 61 70 61 71 70 61 62 71 62 72 71 62 63 72 63 73 72 63 64 73 64 74 73 64 65 74 65 75 74 65 66 75 66 76 75 66 67 76 67 77 76 67 68 77 68 78 77 68 69 78 69 79 78 70 71 80 71 81 80 71 72 81 72 82 81 72 73 82 73 83 82 73 74 83 74 84 83 74 75 84 75 85 84 75 76 85 76 86 85 76 77 86 77 87 86 77 78 87 78 88 87 78 79 88 79 89 88 80 81 90 81 91 90 81 82 91 82 92 91 82 83 92 83 93 92 83 84 93 84 94 93 84 85 94 85 95 94 85 86 95 86 96 95 86 87 96 87 97 96 87 88 97 88 98 97 88 89 98 89 99 98"/>
               </GeometryModel3D.Geometry>
               <GeometryModel3D.Material>
                <DiffuseMaterial>
                 <DiffuseMaterial.Brush>
                  <ImageBrush ImageSource="Mia puntos.png" Stretch="Fill"/>
                 </DiffuseMaterial.Brush>
                </DiffuseMaterial>
               </GeometryModel3D.Material>
              </GeometryModel3D>
             </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="AmbientContainer">
             <ModelVisual3D.Content>
              <AmbientLight x:Name="Ambient" Color="Gray"/>
             </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="DirectionalContainer">
             <ModelVisual3D.Content>
              <DirectionalLight x:Name="Directional" Color="#FF7F7F7F" Direction="0,0,-1">
               <DirectionalLight.Transform>
                <TranslateTransform3D OffsetZ="3" OffsetX="0" OffsetY="0"/>
               </DirectionalLight.Transform>
              </DirectionalLight>
             </ModelVisual3D.Content>
            </ModelVisual3D>
           </Viewport3D>
          </Grid>
          <ControlTemplate.Triggers>
           <Trigger Property="IsFocused" Value="True"/>
           <Trigger Property="IsDefaulted" Value="True"/>
           <Trigger Property="IsMouseOver" Value="True" SourceName="viewport3D">
            <Trigger.EnterActions>
             <BeginStoryboard x:Name="BotónIsMouseOver_BeginStoryboard" Storyboard="{StaticResource BotónIsMouseOver}"/>
            </Trigger.EnterActions>
           </Trigger>
           <Trigger Property="IsPressed" Value="True"/>
           <Trigger Property="IsEnabled" Value="False"/>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="BotónCompradeCréditos" TargetType="{x:Type Button}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
           <Viewport3D>
            <Viewport3D.Camera>
             <PerspectiveCamera FieldOfView="45" FarPlaneDistance="106.60826025257644" LookDirection="0,0,-35.5360867508588" NearPlaneDistance="0.1" Position="-4.9737991503207E-14,0,35.5360867508588" UpDirection="0,1,0"/>
            </Viewport3D.Camera>
            <ModelVisual3D x:Name="ModelContainer1">
             <ModelVisual3D.Content>
              <GeometryModel3D x:Name="Model1" d:Bounds="-14.7195290858726,-10,0,29.4390581717451,20,0">
               <GeometryModel3D.Geometry>
                <MeshGeometry3D Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1" Positions="-14.719529,-10,0 -11.448523,-10,0 -8.1775162,-10,0 -4.9065097,-10,0 -1.6355032,-10,0 1.6355032,-10,0 4.9065097,-10,0 8.1775162,-10,0 11.448523,-10,0 14.719529,-10,0 -14.719529,-7.7777778,0 -11.448523,-7.7777778,0 -8.1775162,-7.7777778,0
    -4.9065097,-7.7777778,0 -1.6355032,-7.7777778,0 1.6355032,-7.7777778,0 4.9065097,-7.7777778,0 8.1775162,-7.7777778,0 11.448523,-7.7777778,0 14.719529,-7.7777778,0 -14.719529,-5.5555556,0 -11.448523,-5.5555556,0 -8.1775162,-5.5555556,0 -4.9065097,-5.5555556,0 -1.6355032,-5.5555556,0 1.6355032,-5.5555556,0
    4.9065097,-5.5555556,0 8.1775162,-5.5555556,0 11.448523,-5.5555556,0 14.719529,-5.5555556,0 -14.719529,-3.3333333,0 -11.448523,-3.3333333,0 -8.1775162,-3.3333333,0 -4.9065097,-3.3333333,0 -1.6355032,-3.3333333,0 1.6355032,-3.3333333,0 4.9065097,-3.3333333,0 8.1775162,-3.3333333,0 11.448523,-3.3333333,0
    14.719529,-3.3333333,0 -14.719529,-1.1111111,0 -11.448523,-1.1111111,0 -8.1775162,-1.1111111,0 -4.9065097,-1.1111111,0 -1.6355032,-1.1111111,0 1.6355032,-1.1111111,0 4.9065097,-1.1111111,0 8.1775162,-1.1111111,0 11.448523,-1.1111111,0 14.719529,-1.1111111,0 -14.719529,1.1111111,0 -11.448523,1.1111111,0
    -8.1775162,1.1111111,0 -4.9065097,1.1111111,0 -1.6355032,1.1111111,0 1.6355032,1.1111111,0 4.9065097,1.1111111,0 8.1775162,1.1111111,0 11.448523,1.1111111,0 14.719529,1.1111111,0 -14.719529,3.3333333,0 -11.448523,3.3333333,0 -8.1775162,3.3333333,0 -4.9065097,3.3333333,0 -1.6355032,3.3333333,0
    1.6355032,3.3333333,0 4.9065097,3.3333333,0 8.1775162,3.3333333,0 11.448523,3.3333333,0 14.719529,3.3333333,0 -14.719529,5.5555556,0 -11.448523,5.5555556,0 -8.1775162,5.5555556,0 -4.9065097,5.5555556,0 -1.6355032,5.5555556,0 1.6355032,5.5555556,0 4.9065097,5.5555556,0 8.1775162,5.5555556,0
    11.448523,5.5555556,0 14.719529,5.5555556,0 -14.719529,7.7777778,0 -11.448523,7.7777778,0 -8.1775162,7.7777778,0 -4.9065097,7.7777778,0 -1.6355032,7.7777778,0 1.6355032,7.7777778,0 4.9065097,7.7777778,0 8.1775162,7.7777778,0 11.448523,7.7777778,0 14.719529,7.7777778,0 -14.719529,10,0
    -11.448523,10,0 -8.1775162,10,0 -4.9065097,10,0 -1.6355032,10,0 1.6355032,10,0 4.9065097,10,0 8.1775162,10,0 11.448523,10,0 14.719529,10,0" TextureCoordinates="0,147.288 24.089,147.288 48.178,147.288 72.267,147.288 96.356,147.288 120.445,147.288 144.534,147.288 168.623,147.288 192.712,147.288 216.801,147.288 0,130.92267 24.089,130.92267 48.178,130.92267 72.267,130.92267 96.356,130.92267 120.445,130.92267 144.534,130.92267 168.623,130.92267 192.712,130.92267 216.801,130.92267 0,114.55733 24.089,114.55733 48.178,114.55733
    72.267,114.55733 96.356,114.55733 120.445,114.55733 144.534,114.55733 168.623,114.55733 192.712,114.55733 216.801,114.55733 0,98.192 24.089,98.192 48.178,98.192 72.267,98.192 96.356,98.192 120.445,98.192 144.534,98.192 168.623,98.192 192.712,98.192 216.801,98.192 0,81.826667 24.089,81.826667 48.178,81.826667 72.267,81.826667 96.356,81.826667 120.445,81.826667
    144.534,81.826667 168.623,81.826667 192.712,81.826667 216.801,81.826667 0,65.461333 24.089,65.461333 48.178,65.461333 72.267,65.461333 96.356,65.461333 120.445,65.461333 144.534,65.461333 168.623,65.461333 192.712,65.461333 216.801,65.461333 0,49.096 24.089,49.096 48.178,49.096 72.267,49.096 96.356,49.096 120.445,49.096 144.534,49.096 168.623,49.096 192.712,49.096
    216.801,49.096 0,32.730667 24.089,32.730667 48.178,32.730667 72.267,32.730667 96.356,32.730667 120.445,32.730667 144.534,32.730667 168.623,32.730667 192.712,32.730667 216.801,32.730667 0,16.365333 24.089,16.365333 48.178,16.365333 72.267,16.365333 96.356,16.365333 120.445,16.365333 144.534,16.365333 168.623,16.365333 192.712,16.365333 216.801,16.365333 0,0 24.089,0
    48.178,0 72.267,0 96.356,0 120.445,0 144.534,0 168.623,0 192.712,0 216.801,0" TriangleIndices="0 1 10 1 11 10 1 2 11 2 12 11 2 3 12 3 13 12 3 4 13 4 14 13 4 5 14 5 15 14 5 6 15 6 16 15 6 7 16 7 17 16 7 8 17 8 18 17 8 9 18 9 19 18 10 11 20 11 21 20 11 12 21 12 22 21 12 13 22 13 23 22 13 14 23 14 24 23 14 15 24 15 25 24 15 16 25 16 26 25 16 17 26 17 27 26 17 18 27 18 28 27 18 19 28 19 29 28 20 21 30 21 31 30 21 22 31 22 32 31 22 23 32 23 33 32 23 24 33 24 34 33 24 25 34 25 35 34 25 26 35 26 36 35 26 27 36 27 37 36 27 28 37 28 38 37 28 29 38 29 39 38 30 31 40 31 41 40 31 32 41 32 42 41 32 33 42 33 43 42 33 34 43 34 44 43 34 35 44 35 45 44 35 36 45 36 46 45 36 37 46 37 47 46 37 38 47 38 48 47 38 39 48 39 49 48 40 41 50 41 51 50 41 42 51 42 52 51 42 43 52 43 53 52 43 44 53 44 54 53 44 45 54 45 55 54 45 46 55 46 56 55 46 47 56 47 57 56 47 48 57 48 58 57 48 49 58 49 59 58 50 51 60 51 61 60 51 52 61 52 62 61 52 53 62 53 63 62 53 54 63 54 64 63 54 55 64 55 65 64 55 56 65 56 66 65 56 57 66 57 67 66 57 58 67 58 68 67 58 59 68 59 69 68 60 61 70 61 71 70 61 62 71 62 72 71 62 63 72 63 73 72 63 64 73 64 74 73 64 65 74 65 75 74 65 66 75 66 76 75 66 67 76 67 77 76 67 68 77 68 78 77 68 69 78 69 79 78 70 71 80 71 81 80 71 72 81 72 82 81 72 73 82 73 83 82 73 74 83 74 84 83 74 75 84 75 85 84 75 76 85 76 86 85 76 77 86 77 87 86 77 78 87 78 88 87 78 79 88 79 89 88 80 81 90 81 91 90 81 82 91 82 92 91 82 83 92 83 93 92 83 84 93 84 94 93 84 85 94 85 95 94 85 86 95 86 96 95 86 87 96 87 97 96 87 88 97 88 98 97 88 89 98 89 99 98"/>
               </GeometryModel3D.Geometry>
               <GeometryModel3D.Material>
                <DiffuseMaterial>
                 <DiffuseMaterial.Brush>
                  <ImageBrush ImageSource="Compra de Créditos.png" Stretch="Fill"/>
                 </DiffuseMaterial.Brush>
                </DiffuseMaterial>
               </GeometryModel3D.Material>
              </GeometryModel3D>
             </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="AmbientContainer1">
             <ModelVisual3D.Content>
              <AmbientLight x:Name="Ambient1" Color="Gray"/>
             </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="DirectionalContainer1">
             <ModelVisual3D.Content>
              <DirectionalLight x:Name="Directional1" Color="#FF7F7F7F" Direction="0,0,-1">
               <DirectionalLight.Transform>
                <TranslateTransform3D OffsetZ="3" OffsetX="0" OffsetY="0"/>
               </DirectionalLight.Transform>
              </DirectionalLight>
             </ModelVisual3D.Content>
            </ModelVisual3D>
           </Viewport3D>
          </Grid>

    Wednesday, January 26, 2011 12:30 AM

All replies

  • <ControlTemplate.Triggers>
           <Trigger Property="IsFocused" Value="True"/>
           <Trigger Property="IsDefaulted" Value="True"/>
           <Trigger Property="IsMouseOver" Value="True"/>
           <Trigger Property="IsPressed" Value="True"/>
           <Trigger Property="IsEnabled" Value="False"/>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="BotónCanjedeCupones" TargetType="{x:Type Button}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
           <Viewport3D>
            <Viewport3D.Camera>
             <PerspectiveCamera FieldOfView="45" FarPlaneDistance="106.5785923754419" LookDirection="0,0,-35.5261974584806" NearPlaneDistance="0.1" Position="-4.9737991503207E-14,0,35.5261974584806" UpDirection="0,1,0"/>
            </Viewport3D.Camera>
            <ModelVisual3D x:Name="ModelContainer2">
             <ModelVisual3D.Content>
              <GeometryModel3D x:Name="Model2" d:Bounds="-14.7154328068473,-10,0,29.4308656136945,20,0">
               <GeometryModel3D.Geometry>
                <MeshGeometry3D Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1" Positions="-14.715433,-10,0 -11.445337,-10,0 -8.1752404,-10,0 -4.9051443,-10,0 -1.6350481,-10,0 1.6350481,-10,0 4.9051443,-10,0 8.1752404,-10,0 11.445337,-10,0 14.715433,-10,0 -14.715433,-7.7777778,0 -11.445337,-7.7777778,0 -8.1752404,-7.7777778,0
    -4.9051443,-7.7777778,0 -1.6350481,-7.7777778,0 1.6350481,-7.7777778,0 4.9051443,-7.7777778,0 8.1752404,-7.7777778,0 11.445337,-7.7777778,0 14.715433,-7.7777778,0 -14.715433,-5.5555556,0 -11.445337,-5.5555556,0 -8.1752404,-5.5555556,0 -4.9051443,-5.5555556,0 -1.6350481,-5.5555556,0 1.6350481,-5.5555556,0
    4.9051443,-5.5555556,0 8.1752404,-5.5555556,0 11.445337,-5.5555556,0 14.715433,-5.5555556,0 -14.715433,-3.3333333,0 -11.445337,-3.3333333,0 -8.1752404,-3.3333333,0 -4.9051443,-3.3333333,0 -1.6350481,-3.3333333,0 1.6350481,-3.3333333,0 4.9051443,-3.3333333,0 8.1752404,-3.3333333,0 11.445337,-3.3333333,0
    14.715433,-3.3333333,0 -14.715433,-1.1111111,0 -11.445337,-1.1111111,0 -8.1752404,-1.1111111,0 -4.9051443,-1.1111111,0 -1.6350481,-1.1111111,0 1.6350481,-1.1111111,0 4.9051443,-1.1111111,0 8.1752404,-1.1111111,0 11.445337,-1.1111111,0 14.715433,-1.1111111,0 -14.715433,1.1111111,0 -11.445337,1.1111111,0
    -8.1752404,1.1111111,0 -4.9051443,1.1111111,0 -1.6350481,1.1111111,0 1.6350481,1.1111111,0 4.9051443,1.1111111,0 8.1752404,1.1111111,0 11.445337,1.1111111,0 14.715433,1.1111111,0 -14.715433,3.3333333,0 -11.445337,3.3333333,0 -8.1752404,3.3333333,0 -4.9051443,3.3333333,0 -1.6350481,3.3333333,0
    1.6350481,3.3333333,0 4.9051443,3.3333333,0 8.1752404,3.3333333,0 11.445337,3.3333333,0 14.715433,3.3333333,0 -14.715433,5.5555556,0 -11.445337,5.5555556,0 -8.1752404,5.5555556,0 -4.9051443,5.5555556,0 -1.6350481,5.5555556,0 1.6350481,5.5555556,0 4.9051443,5.5555556,0 8.1752404,5.5555556,0
    11.445337,5.5555556,0 14.715433,5.5555556,0 -14.715433,7.7777778,0 -11.445337,7.7777778,0 -8.1752404,7.7777778,0 -4.9051443,7.7777778,0 -1.6350481,7.7777778,0 1.6350481,7.7777778,0 4.9051443,7.7777778,0 8.1752404,7.7777778,0 11.445337,7.7777778,0 14.715433,7.7777778,0 -14.715433,10,0
    -11.445337,10,0 -8.1752404,10,0 -4.9051443,10,0 -1.6350481,10,0 1.6350481,10,0 4.9051443,10,0 8.1752404,10,0 11.445337,10,0 14.715433,10,0" TextureCoordinates="0,147.329 24.089,147.329 48.178,147.329 72.267,147.329 96.356,147.329 120.445,147.329 144.534,147.329 168.623,147.329 192.712,147.329 216.801,147.329 0,130.95911 24.089,130.95911 48.178,130.95911 72.267,130.95911 96.356,130.95911 120.445,130.95911 144.534,130.95911 168.623,130.95911 192.712,130.95911 216.801,130.95911 0,114.58922 24.089,114.58922 48.178,114.58922
    72.267,114.58922 96.356,114.58922 120.445,114.58922 144.534,114.58922 168.623,114.58922 192.712,114.58922 216.801,114.58922 0,98.219333 24.089,98.219333 48.178,98.219333 72.267,98.219333 96.356,98.219333 120.445,98.219333 144.534,98.219333 168.623,98.219333 192.712,98.219333 216.801,98.219333 0,81.849444 24.089,81.849444 48.178,81.849444 72.267,81.849444 96.356,81.849444 120.445,81.849444
    144.534,81.849444 168.623,81.849444 192.712,81.849444 216.801,81.849444 0,65.479556 24.089,65.479556 48.178,65.479556 72.267,65.479556 96.356,65.479556 120.445,65.479556 144.534,65.479556 168.623,65.479556 192.712,65.479556 216.801,65.479556 0,49.109667 24.089,49.109667 48.178,49.109667 72.267,49.109667 96.356,49.109667 120.445,49.109667 144.534,49.109667 168.623,49.109667 192.712,49.109667
    216.801,49.109667 0,32.739778 24.089,32.739778 48.178,32.739778 72.267,32.739778 96.356,32.739778 120.445,32.739778 144.534,32.739778 168.623,32.739778 192.712,32.739778 216.801,32.739778 0,16.369889 24.089,16.369889 48.178,16.369889 72.267,16.369889 96.356,16.369889 120.445,16.369889 144.534,16.369889 168.623,16.369889 192.712,16.369889 216.801,16.369889 0,0 24.089,0
    48.178,0 72.267,0 96.356,0 120.445,0 144.534,0 168.623,0 192.712,0 216.801,0" TriangleIndices="0 1 10 1 11 10 1 2 11 2 12 11 2 3 12 3 13 12 3 4 13 4 14 13 4 5 14 5 15 14 5 6 15 6 16 15 6 7 16 7 17 16 7 8 17 8 18 17 8 9 18 9 19 18 10 11 20 11 21 20 11 12 21 12 22 21 12 13 22 13 23 22 13 14 23 14 24 23 14 15 24 15 25 24 15 16 25 16 26 25 16 17 26 17 27 26 17 18 27 18 28 27 18 19 28 19 29 28 20 21 30 21 31 30 21 22 31 22 32 31 22 23 32 23 33 32 23 24 33 24 34 33 24 25 34 25 35 34 25 26 35 26 36 35 26 27 36 27 37 36 27 28 37 28 38 37 28 29 38 29 39 38 30 31 40 31 41 40 31 32 41 32 42 41 32 33 42 33 43 42 33 34 43 34 44 43 34 35 44 35 45 44 35 36 45 36 46 45 36 37 46 37 47 46 37 38 47 38 48 47 38 39 48 39 49 48 40 41 50 41 51 50 41 42 51 42 52 51 42 43 52 43 53 52 43 44 53 44 54 53 44 45 54 45 55 54 45 46 55 46 56 55 46 47 56 47 57 56 47 48 57 48 58 57 48 49 58 49 59 58 50 51 60 51 61 60 51 52 61 52 62 61 52 53 62 53 63 62 53 54 63 54 64 63 54 55 64 55 65 64 55 56 65 56 66 65 56 57 66 57 67 66 57 58 67 58 68 67 58 59 68 59 69 68 60 61 70 61 71 70 61 62 71 62 72 71 62 63 72 63 73 72 63 64 73 64 74 73 64 65 74 65 75 74 65 66 75 66 76 75 66 67 76 67 77 76 67 68 77 68 78 77 68 69 78 69 79 78 70 71 80 71 81 80 71 72 81 72 82 81 72 73 82 73 83 82 73 74 83 74 84 83 74 75 84 75 85 84 75 76 85 76 86 85 76 77 86 77 87 86 77 78 87 78 88 87 78 79 88 79 89 88 80 81 90 81 91 90 81 82 91 82 92 91 82 83 92 83 93 92 83 84 93 84 94 93 84 85 94 85 95 94 85 86 95 86 96 95 86 87 96 87 97 96 87 88 97 88 98 97 88 89 98 89 99 98"/>
               </GeometryModel3D.Geometry>
               <GeometryModel3D.Material>
                <DiffuseMaterial>
                 <DiffuseMaterial.Brush>
                  <ImageBrush ImageSource="Canje e Impresión.png" Stretch="Fill"/>
                 </DiffuseMaterial.Brush>
                </DiffuseMaterial>
               </GeometryModel3D.Material>
              </GeometryModel3D>
             </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="AmbientContainer2">
             <ModelVisual3D.Content>
              <AmbientLight x:Name="Ambient2" Color="Gray"/>
             </ModelVisual3D.Content>
            </ModelVisual3D>
            <ModelVisual3D x:Name="DirectionalContainer2">
             <ModelVisual3D.Content>
              <DirectionalLight x:Name="Directional2" Color="#FF7F7F7F" Direction="0,0,-1">
               <DirectionalLight.Transform>
                <TranslateTransform3D OffsetZ="3" OffsetX="0" OffsetY="0"/>
               </DirectionalLight.Transform>
              </DirectionalLight>
             </ModelVisual3D.Content>
            </ModelVisual3D>
           </Viewport3D>
          </Grid>
          <ControlTemplate.Triggers>
           <Trigger Property="IsFocused" Value="True"/>
           <Trigger Property="IsDefaulted" Value="True"/>
           <Trigger Property="IsMouseOver" Value="True"/>
           <Trigger Property="IsPressed" Value="True"/>
           <Trigger Property="IsEnabled" Value="False"/>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Storyboard x:Key="INTRO">
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image2">
        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
       </DoubleAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image1">
        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
       </DoubleAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="textBlock">
        <EasingDoubleKeyFrame KeyTime="0" Value="-576"/>
        <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
       </DoubleAnimationUsingKeyFrames>
       <Rotation3DAnimationUsingKeyFrames Storyboard.TargetProperty="(Visual3D.Transform).(Transform3DGroup.Children)[2].(RotateTransform3D.Rotation)" Storyboard.TargetName="imageModelContainer">
        <EasingRotation3DKeyFrame KeyTime="0">
         <EasingRotation3DKeyFrame.Value>
          <AxisAngleRotation3D Axis="0,-1,0" Angle="90"/>
         </EasingRotation3DKeyFrame.Value>
        </EasingRotation3DKeyFrame>
        <EasingRotation3DKeyFrame KeyTime="0:0:2">
         <EasingRotation3DKeyFrame.Value>
          <AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
         </EasingRotation3DKeyFrame.Value>
        </EasingRotation3DKeyFrame>
       </Rotation3DAnimationUsingKeyFrames>
       <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.ClipToBounds)" Storyboard.TargetName="image">
        <DiscreteBooleanKeyFrame KeyTime="0" Value="False"/>
        <DiscreteBooleanKeyFrame KeyTime="0:0:2" Value="True"/>
       </BooleanAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="rectangle">
        <SplineDoubleKeyFrame KeyTime="0" Value="0.008"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.008"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.008"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.008"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
       </DoubleAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="rectangle">
        <SplineDoubleKeyFrame KeyTime="0" Value="0.833"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.833"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.833"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.833"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="0"/>
       </DoubleAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="rectangle">
        <EasingDoubleKeyFrame KeyTime="0" Value="0.006"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
       </DoubleAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="rectangle">
        <EasingDoubleKeyFrame KeyTime="0" Value="0.166"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="0"/>
       </DoubleAnimationUsingKeyFrames>
       <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle">
        <EasingColorKeyFrame KeyTime="0:0:0.2" Value="Black"/>
        <EasingColorKeyFrame KeyTime="0:0:0.3" Value="White"/>
        <EasingColorKeyFrame KeyTime="0:0:0.4" Value="Black"/>
        <EasingColorKeyFrame KeyTime="0:0:0.7" Value="Black"/>
        <EasingColorKeyFrame KeyTime="0:0:0.8" Value="White"/>
        <EasingColorKeyFrame KeyTime="0:0:0.9" Value="Black"/>
       </ColorAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="rectangle1">
        <SplineDoubleKeyFrame KeyTime="0" Value="0.009"/>
        <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.009"/>
        <EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="1"/>
       </DoubleAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="rectangle1">
        <SplineDoubleKeyFrame KeyTime="0" Value="314"/>
        <EasingDoubleKeyFrame KeyTime="0:0:1" Value="314"/>
        <EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0"/>
       </DoubleAnimationUsingKeyFrames>
       <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
        <EasingColorKeyFrame KeyTime="0" Value="#00080807"/>
        <EasingColorKeyFrame KeyTime="0:0:1" Value="#00080807"/>
       </ColorAnimationUsingKeyFrames>
       <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
        <EasingColorKeyFrame KeyTime="0" Value="#00A7A0A0"/>
        <EasingColorKeyFrame KeyTime="0:0:1" Value="#77A7A0A0"/>
       </ColorAnimationUsingKeyFrames>
       <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle1">
        <EasingColorKeyFrame KeyTime="0" Value="#00010316"/>
        <EasingColorKeyFrame KeyTime="0:0:1" Value="#00010316"/>
       </ColorAnimationUsingKeyFrames>
       <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rectangle1">
        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
       </DoubleAnimationUsingKeyFrames>
      </Storyboard>
     </Window.Resources>
     <Window.Triggers>
      <EventTrigger RoutedEvent="FrameworkElement.Loaded">
       <BeginStoryboard Storyboard="{StaticResource INTRO}"/>
      </EventTrigger>
     </Window.Triggers>
    Wednesday, January 26, 2011 12:31 AM
  • <Grid x:Name="LayoutRoot">
      <Grid.ColumnDefinitions>
       <ColumnDefinition/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
       <RowDefinition/>
      </Grid.RowDefinitions>
      <Rectangle x:Name="rectangle" Margin="0,-2,0,-6" StrokeThickness="0" RenderTransformOrigin="0.5,0.5" Fill="Black">
       <Rectangle.OpacityMask>
        <LinearGradientBrush EndPoint="0.042,0.089" StartPoint="0.923,0.901">
         <GradientStop Color="Black" Offset="0"/>
         <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
       </Rectangle.OpacityMask>
       <Rectangle.RenderTransform>
        <TransformGroup>
         <ScaleTransform/>
         <SkewTransform/>
         <RotateTransform Angle="-180"/>
         <TranslateTransform/>
        </TransformGroup>
       </Rectangle.RenderTransform>
      </Rectangle>
      <Rectangle x:Name="rectangle1" Margin="44,42.5,50.5,54" RadiusY="32" RadiusX="32" StrokeThickness="10" RenderTransformOrigin="0.5,0.5">
       <Rectangle.RenderTransform>
        <TransformGroup>
         <ScaleTransform/>
         <SkewTransform/>
         <RotateTransform/>
         <TranslateTransform/>
        </TransformGroup>
       </Rectangle.RenderTransform>
       <Rectangle.Stroke>
        <LinearGradientBrush EndPoint="0.96,0.047" StartPoint="0.04,0.961">
         <GradientStop Color="#FF1A0318" Offset="0.645"/>
         <GradientStop Color="#77A7A0A0" Offset="1"/>
        </LinearGradientBrush>
       </Rectangle.Stroke>
       <Rectangle.Fill>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
         <GradientStop Color="#FF010316" Offset="1"/>
         <GradientStop Color="#66080807"/>
        </LinearGradientBrush>
       </Rectangle.Fill>
      </Rectangle>
      <Viewport3D x:Name="image" HorizontalAlignment="Left" Margin="-7,88,0,82" Width="253.656">
       <Viewport3D.Camera>
        <PerspectiveCamera FieldOfView="45" FarPlaneDistance="100" LookDirection="0,0,-10.9353527745948" NearPlaneDistance="0.1" Position="0,0,10.9353527745948" UpDirection="0,1,0"/>
       </Viewport3D.Camera>
       <ModelVisual3D x:Name="imageModelContainer">
        <ModelVisual3D.Transform>
         <Transform3DGroup>
          <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
          <ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
          <RotateTransform3D d:EulerAngles="0,0,0">
           <RotateTransform3D.Rotation>
            <AxisAngleRotation3D Axis="0,1,0" Angle="0"/>
           </RotateTransform3D.Rotation>
          </RotateTransform3D>
          <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
          <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
         </Transform3DGroup>
        </ModelVisual3D.Transform>
        <ModelVisual3D.Content>
         <GeometryModel3D x:Name="imageModel" d:Bounds="-4.52957142857143,-10,0,9.05914285714286,20,0">
          <GeometryModel3D.Geometry>
           <MeshGeometry3D Normals="0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1
    0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1 0,0,1" Positions="-4.5295714,-10,0 -3.523,-10,0 -2.5164286,-10,0 -1.5098571,-10,0 -0.50328571,-10,0 0.50328571,-10,0 1.5098571,-10,0 2.5164286,-10,0 3.523,-10,0 4.5295714,-10,0 -4.5295714,-7.7777778,0 -3.523,-7.7777778,0 -2.5164286,-7.7777778,0
    -1.5098571,-7.7777778,0 -0.50328571,-7.7777778,0 0.50328571,-7.7777778,0 1.5098571,-7.7777778,0 2.5164286,-7.7777778,0 3.523,-7.7777778,0 4.5295714,-7.7777778,0 -4.5295714,-5.5555556,0 -3.523,-5.5555556,0 -2.5164286,-5.5555556,0 -1.5098571,-5.5555556,0 -0.50328571,-5.5555556,0 0.50328571,-5.5555556,0
    1.5098571,-5.5555556,0 2.5164286,-5.5555556,0 3.523,-5.5555556,0 4.5295714,-5.5555556,0 -4.5295714,-3.3333333,0 -3.523,-3.3333333,0 -2.5164286,-3.3333333,0 -1.5098571,-3.3333333,0 -0.50328571,-3.3333333,0 0.50328571,-3.3333333,0 1.5098571,-3.3333333,0 2.5164286,-3.3333333,0 3.523,-3.3333333,0
    4.5295714,-3.3333333,0 -4.5295714,-1.1111111,0 -3.523,-1.1111111,0 -2.5164286,-1.1111111,0 -1.5098571,-1.1111111,0 -0.50328571,-1.1111111,0 0.50328571,-1.1111111,0 1.5098571,-1.1111111,0 2.5164286,-1.1111111,0 3.523,-1.1111111,0 4.5295714,-1.1111111,0 -4.5295714,1.1111111,0 -3.523,1.1111111,0
    -2.5164286,1.1111111,0 -1.5098571,1.1111111,0 -0.50328571,1.1111111,0 0.50328571,1.1111111,0 1.5098571,1.1111111,0 2.5164286,1.1111111,0 3.523,1.1111111,0 4.5295714,1.1111111,0 -4.5295714,3.3333333,0 -3.523,3.3333333,0 -2.5164286,3.3333333,0 -1.5098571,3.3333333,0 -0.50328571,3.3333333,0
    0.50328571,3.3333333,0 1.5098571,3.3333333,0 2.5164286,3.3333333,0 3.523,3.3333333,0 4.5295714,3.3333333,0 -4.5295714,5.5555556,0 -3.523,5.5555556,0 -2.5164286,5.5555556,0 -1.5098571,5.5555556,0 -0.50328571,5.5555556,0 0.50328571,5.5555556,0 1.5098571,5.5555556,0 2.5164286,5.5555556,0
    3.523,5.5555556,0 4.5295714,5.5555556,0 -4.5295714,7.7777778,0 -3.523,7.7777778,0 -2.5164286,7.7777778,0 -1.5098571,7.7777778,0 -0.50328571,7.7777778,0 0.50328571,7.7777778,0 1.5098571,7.7777778,0 2.5164286,7.7777778,0 3.523,7.7777778,0 4.5295714,7.7777778,0 -4.5295714,10,0
    -3.523,10,0 -2.5164286,10,0 -1.5098571,10,0 -0.50328571,10,0 0.50328571,10,0 1.5098571,10,0 2.5164286,10,0 3.523,10,0 4.5295714,10,0" TextureCoordinates="0,560 28.184,560 56.368,560 84.552,560 112.736,560 140.92,560 169.104,560 197.288,560 225.472,560 253.656,560 0,497.77778 28.184,497.77778 56.368,497.77778 84.552,497.77778 112.736,497.77778 140.92,497.77778 169.104,497.77778 197.288,497.77778 225.472,497.77778 253.656,497.77778 0,435.55556 28.184,435.55556 56.368,435.55556
    84.552,435.55556 112.736,435.55556 140.92,435.55556 169.104,435.55556 197.288,435.55556 225.472,435.55556 253.656,435.55556 0,373.33333 28.184,373.33333 56.368,373.33333 84.552,373.33333 112.736,373.33333 140.92,373.33333 169.104,373.33333 197.288,373.33333 225.472,373.33333 253.656,373.33333 0,311.11111 28.184,311.11111 56.368,311.11111 84.552,311.11111 112.736,311.11111 140.92,311.11111
    169.104,311.11111 197.288,311.11111 225.472,311.11111 253.656,311.11111 0,248.88889 28.184,248.88889 56.368,248.88889 84.552,248.88889 112.736,248.88889 140.92,248.88889 169.104,248.88889 197.288,248.88889 225.472,248.88889 253.656,248.88889 0,186.66667 28.184,186.66667 56.368,186.66667 84.552,186.66667 112.736,186.66667 140.92,186.66667 169.104,186.66667 197.288,186.66667 225.472,186.66667
    253.656,186.66667 0,124.44444 28.184,124.44444 56.368,124.44444 84.552,124.44444 112.736,124.44444 140.92,124.44444 169.104,124.44444 197.288,124.44444 225.472,124.44444 253.656,124.44444 0,62.222222 28.184,62.222222 56.368,62.222222 84.552,62.222222 112.736,62.222222 140.92,62.222222 169.104,62.222222 197.288,62.222222 225.472,62.222222 253.656,62.222222 0,0 28.184,0
    56.368,0 84.552,0 112.736,0 140.92,0 169.104,0 197.288,0 225.472,0 253.656,0" TriangleIndices="0 1 10 1 11 10 1 2 11 2 12 11 2 3 12 3 13 12 3 4 13 4 14 13 4 5 14 5 15 14 5 6 15 6 16 15 6 7 16 7 17 16 7 8 17 8 18 17 8 9 18 9 19 18 10 11 20 11 21 20 11 12 21 12 22 21 12 13 22 13 23 22 13 14 23 14 24 23 14 15 24 15 25 24 15 16 25 16 26 25 16 17 26 17 27 26 17 18 27 18 28 27 18 19 28 19 29 28 20 21 30 21 31 30 21 22 31 22 32 31 22 23 32 23 33 32 23 24 33 24 34 33 24 25 34 25 35 34 25 26 35 26 36 35 26 27 36 27 37 36 27 28 37 28 38 37 28 29 38 29 39 38 30 31 40 31 41 40 31 32 41 32 42 41 32 33 42 33 43 42 33 34 43 34 44 43 34 35 44 35 45 44 35 36 45 36 46 45 36 37 46 37 47 46 37 38 47 38 48 47 38 39 48 39 49 48 40 41 50 41 51 50 41 42 51 42 52 51 42 43 52 43 53 52 43 44 53 44 54 53 44 45 54 45 55 54 45 46 55 46 56 55 46 47 56 47 57 56 47 48 57 48 58 57 48 49 58 49 59 58 50 51 60 51 61 60 51 52 61 52 62 61 52 53 62 53 63 62 53 54 63 54 64 63 54 55 64 55 65 64 55 56 65 56 66 65 56 57 66 57 67 66 57 58 67 58 68 67 58 59 68 59 69 68 60 61 70 61 71 70 61 62 71 62 72 71 62 63 72 63 73 72 63 64 73 64 74 73 64 65 74 65 75 74 65 66 75 66 76 75 66 67 76 67 77 76 67 68 77 68 78 77 68 69 78 69 79 78 70 71 80 71 81 80 71 72 81 72 82 81 72 73 82 73 83 82 73 74 83 74 84 83 74 75 84 75 85 84 75 76 85 76 86 85 76 77 86 77 87 86 77 78 87 78 88 87 78 79 88 79 89 88 80 81 90 81 91 90 81 82 91 82 92 91 82 83 92 83 93 92 83 84 93 84 94 93 84 85 94 85 95 94 85 86 95 86 96 95 86 87 96 87 97 96 87 88 97 88 98 97 88 89 98 89 99 98"/>
          </GeometryModel3D.Geometry>
          <GeometryModel3D.Material>
           <DiffuseMaterial>
            <DiffuseMaterial.Brush>
             <ImageBrush ImageSource="Barradetrásbotones.png" Stretch="Fill"/>
            </DiffuseMaterial.Brush>
           </DiffuseMaterial>
          </GeometryModel3D.Material>
         </GeometryModel3D>
        </ModelVisual3D.Content>
       </ModelVisual3D>
       <ModelVisual3D x:Name="AmbientContainer">
        <ModelVisual3D.Content>
         <AmbientLight x:Name="Ambient" Color="Gray"/>
        </ModelVisual3D.Content>
       </ModelVisual3D>
       <ModelVisual3D x:Name="DirectionalContainer">
        <ModelVisual3D.Content>
         <DirectionalLight x:Name="Directional" Color="#FF7F7F7F" Direction="0,0,-1">
          <DirectionalLight.Transform>
           <TranslateTransform3D OffsetZ="3" OffsetX="0" OffsetY="0"/>
          </DirectionalLight.Transform>
         </DirectionalLight>
        </ModelVisual3D.Content>
       </ModelVisual3D>
      </Viewport3D>
      <Image x:Name="image1" Margin="-6,0,-7,0" Source="BarradearribaKiosco.png" Stretch="Fill" Height="119.96" VerticalAlignment="Top"/>
      <Image x:Name="image2" Height="122" Margin="2,0,-3,-2" Source="BarradeabajoKiosco.png" Stretch="Fill" VerticalAlignment="Bottom"/>
      <TextBlock x:Name="textBlock" Height="64" Margin="26,28,128,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="33.333" Foreground="#FFA3B400" FontFamily="SimHei" RenderTransformOrigin="0.5,0.5">
       <TextBlock.RenderTransform>
        <TransformGroup>
         <ScaleTransform/>
         <SkewTransform/>
         <RotateTransform/>
         <TranslateTransform/>
        </TransformGroup>
       </TextBlock.RenderTransform><Run Language="es-mx" Text="¡Bienvenido Fernando Sotomayor!"/></TextBlock>
      <Grid x:Name="grid" Margin="-8,0.5,0,0" HorizontalAlignment="Left" Width="227.5" Height="730" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment">
       <Button x:Name="button" Content="Button" Height="147.289" Margin="-9.778,128.96,20.477,0" Style="{DynamicResource Botón Mis Puntos}" VerticalAlignment="Top"/>
       <Button x:Name="button1" Content="Button" Height="147.329" Margin="-9.5,0,20.199,130.468" Style="{DynamicResource BotónCanjedeCupones}" VerticalAlignment="Bottom"/>
       <Button x:Name="button2" Content="Button" Margin="-9.778,289.68,20.477,293.032" Style="{DynamicResource BotónCompradeCréditos}"/>
      </Grid>
      <Image x:Name="image3" HorizontalAlignment="Right" Height="88.298" Source="LogoPNG.png" Stretch="Fill" VerticalAlignment="Top" Width="84.053" Margin="0,13,56,0" d:IsHidden="True"/>
      <Grid x:Name="grid1" Margin="0,0,64,95.5" HorizontalAlignment="Right" Width="725.5" Height="538" VerticalAlignment="Bottom">
       <Image x:Name="image4" Margin="3.244,52.162,-4,-0.161" Source="pack://siteoforigin:,,,/La buena mami cortada.png" Stretch="Fill">
        <Image.OpacityMask>
         <LinearGradientBrush EndPoint="1.035,0.219" StartPoint="0.079,0.617">
          <GradientStop Color="#00000000" Offset="0"/>
          <GradientStop Color="White" Offset="1"/>
         </LinearGradientBrush>
        </Image.OpacityMask>
       </Image>
      </Grid>
     </Grid>
    </Window>
    Wednesday, January 26, 2011 12:32 AM
  • This is the .cs CODE in case it's of some help, thank you

    _________________________________________________________

     

    using

     

     

    System;

    using

     

     

    System.Collections.Generic;

    using

     

     

    System.Text;

    using

     

     

    System.Windows;

    using

     

     

    System.Windows.Controls;

    using

     

     

    System.Windows.Data;

    using

     

     

    System.Windows.Documents;

    using

     

     

    System.Windows.Input;

    using

     

     

    System.Windows.Media;

    using

     

     

    System.Windows.Media.Imaging;

    using

     

     

    System.Windows.Shapes;

    namespace

     

     

    PantallaKiosco

    {

     

     

    /// <summary>

     

     

    /// Lógica de interacción para MainWindow.xaml

     

     

    /// </summary>

     

     

    public partial class MainWindow : Window

    {

     

     

    public MainWindow()

    {

     

     

    this.InitializeComponent();

     

     

    // A partir de este punto se requiere la inserción de código para la creación del objeto.

    }

    }

    }

    Wednesday, January 26, 2011 12:33 AM
  • the title is supposed to say 'NOT working' my bad.
    Wednesday, January 26, 2011 12:35 AM