So many choices! I went for 2 visual states (1 with a RenderTransform) and 2 behaviours (MouseEnter and Moseleave).
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity ... <Grid x:Name="LayoutRoot" Background="White"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="SG_Help"> <VisualState x:Name="VS_Expand"> <Storyboard> <DoubleAnimation Duration="0" To="1.2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="button" /> <DoubleAnimation Duration="0" To="1.2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="button" /> </Storyboard> </VisualState> <VisualState x:Name="VS_contract"/> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Button x:Name="button" Content="Button" HorizontalAlignment="Right" Height="36" Margin="0,0,110,30" VerticalAlignment="Bottom" Width="48" RenderTransformOrigin="0.5,0.5"> <Button.RenderTransform> <CompositeTransform/> </Button.RenderTransform> <i:Interaction.Triggers> <i:EventTrigger EventName="MouseEnter"> <ei:GoToStateAction StateName="VS_Expand"/> </i:EventTrigger> <i:EventTrigger EventName="MouseLeave"> <ei:GoToStateAction StateName="VS_contract"/> </i:EventTrigger> </i:Interaction.Triggers> </Button> </Grid> But if I was doing this I'd probably put all that in a ControlTemplate to get all that junk out of my page XAML. Shane From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Grant Molloy Sent: Sunday, 24 June 2012 3:29 PM To: ozSilverlight Subject: Re: Animating an image Greg, Is that your "other" left ?? Grant On Sun, Jun 24, 2012 at 12:09 PM, Greg Keogh <g...@mira.net<mailto:g...@mira.net>> wrote: Folks, I've been writing WPF for several weeks and I just returned to doing some SL4 coding. I've already forgotten if I can do something declaratively, or I need code, or a bit of both. I've placed a small help Image at the bottom left of charts (see screen shot) and I'd like the image to expand on mouse over with a tooltip (then if they click it I will replace the chart with a full help display). I've just forgotten how to make the expanding effect in SL4. I don't think I can use triggers in XAML, so I just need confirmation that code is required. Greg [cid:image001.png@01CD5221.C8DA98E0] _______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com<mailto:ozsilverlight@ozsilverlight.com> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
<<inline: image001.png>>
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight