Animation inside custom GridViewColum

3 posts, 0 answers
  1. Tolga
    Tolga avatar
    28 posts
    Member since:
    Jun 2007

    Posted 01 Jul 2010 Link to this post

    I am using a RadGridView with a custom GridViewTemplate. Inside that template I simply have an image call "MyImage". Now on the MouseButtonUp event I am triggering certain things...not important, but what is important is that I would like to animate that image based on it's click state.

    I created a little sprite (=test app) to build that animation using Blend and VisualStateManager. I copied over the VisualStateManager Xaml block. But now when I click the image in run time I get an exception. "....bla bla TargetName "MyImage" cannot be resolved/found".

    So, in essence the VisualStateMange and the therein contained StoryBoard are not able to "find" the "MyImage" image control inside the my custom GridViewColumnTemplate. 

    What can I do?
  2. Stefan Dobrev
    Stefan Dobrev avatar
    790 posts

    Posted 02 Jul 2010 Link to this post

    Hi Tolga,

    Can you please try to create this custom image in a separate UserControl? Having it working in a separate control it will be easier for you to just use this control in the CellTemplate for your column.

    Sincerely yours,
    Stefan Dobrev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Civelle
    Civelle avatar
    29 posts
    Member since:
    Dec 2009

    Posted 20 Jul 2010 Link to this post

    Hi Tolga.

    To solve this problem, just shake your screen, do a little dance around your chair, give a big hug to one of your favorite co-worker, and it should fix your issue! ;o)

    Ginette Latour!
Back to Top