Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - markup - adding xaml code after render
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

markup - adding xaml code after render

 Post Reply Post Reply
Author
Message
mnowaczy View Drop Down
Groupie
Groupie


Joined: 16 June 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote mnowaczy Quote  Post ReplyReply Direct Link To This Post Topic: markup - adding xaml code after render
    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)?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mnowaczy View Drop Down
Groupie
Groupie


Joined: 16 June 2008
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote mnowaczy Quote  Post ReplyReply Direct Link To This Post 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? :)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2009 at 8:02am

It will be used automatically. guess :)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.