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

Can not add Animation to page with PanelBar

2 Answers 72 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 05 Aug 2008, 04:46 PM
Hi;

I'm not sure if this problem is related to Blend throwing all kinds of COM errors but I thought I report it.

When I Open my page (a user control) I create a storyboard in Blend that takes Opacity of the page from 0 to 100 in .5 second, which seems like the page fades in and when the page is closing I create a storyboard to scale the X and Y to 0 to close the page.

I can do this in Blend with all the pages (including the RADTab) except the page that has RADPaneBar. Blend does not complete writing the XAML code!

Thanks!
..Ben

2 Answers, 1 is accepted

Sort by
0
Accepted
Tihomir Petkov
Telerik team
answered on 06 Aug 2008, 09:08 AM
Hi Ben,

The COM errors you get are due to a bug you've already reported (the one regarding nested PanelBar items). That bug is fixed and the updated DLLs will be available with our Service Pack.

As for adding animations to a Page containing a PanelBar - it seems to be working. I am attaching a sample Blend project in which I reproduced what you said you were trying to do. Hope it helps. Let me know if the problem persists.

P.S. I encountered something that seems to be a bug in Blend: when you try to open the ClosingStoryboard in the Objects and Timeline pane, you get an InvalidOperationException because Blend says it cannot find the scaleTransform object. However, at run-time everything's fine and the animations work. I believe this is a bug in
Blend because the problem remains even if I remove the PanelBar from the Page.

Best wishes,
Tihomir Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ben Hayat
Top achievements
Rank 2
answered on 06 Aug 2008, 12:03 PM
Tihomir;

Last night, I noticed, the real cause of the problem is, when blend is trying to generate the code for "Scale Transform" and due to this problem, it did not complete the code for the storyboard.

Then, I copied the same code that I use in another page, to this page and it works. It's just at design time time Blend is having problem, and could be due to the COM errors.

Thank you for the ZIP file and looking forward to SP.
..Ben
Tags
PanelBar
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Tihomir Petkov
Telerik team
Ben Hayat
Top achievements
Rank 2
Share this question
or