![]() |
markup - adding xaml code after render |
Post Reply
|
| Author | |
mnowaczy
Groupie
Joined: 16 June 2008 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: markup - adding xaml code after renderPosted: 17 June 2009 at 9:25am |
|
I have markup view that displays data from different sources. I have data providers that makes xaml code for different containers which are then collected into one and xaml is rendered. The problem is that not all sources are ready at the same time. Lets say I have most of containers ready and I render Xaml which means it builds MarkupUI object etc. After some time other containers got it's data, made its xaml code and I want to display it as well.
Is there a possibility to add this code without rendering all xaml document from the begining? BTW: is there a possibility to put an animation in the xaml (animated gif, avi, xaml animation)? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 June 2009 at 5:27am |
|
You can create whole markup in code. Check Samples\Utilities\MarkupPad\MarkupPadView.cpp sources - its CMarkupPadView::CreateCodeMarkup() method. You can parse XAML from container and then insert top Element to some Stack/Grid of main Markup.
sorry, animation is not supported :(
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mnowaczy
Groupie
Joined: 16 June 2008 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 July 2009 at 5:22am |
|
Thanks.
One more question about resources and it's styles. I have global styles in a page resources. Whould a xaml from container render properly if uses those global styles? Probably i'll have to copy content of the global resources to a xaml element (StackPanel) i'm gonna render for container. Am I right? ps. any plans for supporting animations? :) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 July 2009 at 8:02am |
|
It will be used automatically. guess :) |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |