Print Page | Close Window

markup - adding xaml code after render

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14547
Printed Date: 22 June 2025 at 7:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: markup - adding xaml code after render
Posted By: mnowaczy
Subject: markup - adding xaml code after render
Date Posted: 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)?



Replies:
Posted By: Oleg
Date 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


Posted By: mnowaczy
Date 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? :)


Posted By: Oleg
Date Posted: 01 July 2009 at 8:02am

It will be used automatically. guess :)



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net