This is a migrated thread and some comments may be shown as answers.

Animation inside custom GridViewColum

2 Answers 40 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Tolga
Top achievements
Rank 1
Tolga asked on 01 Jul 2010, 05:06 AM
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?
Thanks
--tolga

2 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 02 Jul 2010, 01:38 PM
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
0
Civelle
Top achievements
Rank 2
answered on 20 Jul 2010, 12:38 PM
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!
Tags
Menu
Asked by
Tolga
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Civelle
Top achievements
Rank 2
Share this question
or