Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1564
Animate a grid
posted

Hi,

When I display a grid it slide from the left to the right, so I use an animation to show it.

The first time (ie. when I bind it to the data source) all is fine. But after, if I use animation, the "mouse over" effect over the data record stop to work.

Even, the double-click does not work anymore too! 

 What I do :

The first time (work fine) : 

1 - I translate the grid
2 - I bind it to data source

The next time (do not work anymore) :

1 - I translate the grid
 

I have event try this code  once the storyboard is complete, but it change nothing ! 

            xdgMedias.UpdateLayout();
            xdgMedias.InvalidateArrange();
            xdgMedias.InvalidateMeasure();
            xdgMedias.InvalidateVisual();
            xdgMedias.UpdateLayout();
            foreach (DataRecord record in xdgMedias.Records)
            {
                record.Update();

                record.DataPresenter.UpdateLayout();
                record.DataPresenter.InvalidateArrange();
                record.DataPresenter.InvalidateMeasure();
                record.DataPresenter.InvalidateVisual();
                record.DataPresenter.UpdateLayout();
            }

Parents Reply Children
No Data