Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Running Automatically Generated XAML

Closed Thread
 
Thread Tools Display Modes
Old 11-13-2006   #1 (permalink)
Don's Avatar
Don
Guest


 



Running Automatically Generated XAML

I want my VB application (coe behind) to generate a XAML 3D object that
will appear in a viewport. How do I get my XAML UI to display a 3D
object that was genereated programatically by my application? Can I get
a XAML UI to include a file that includes XAML commands at runtime?
What is the best way to do this?

Old 11-13-2006   #2 (permalink)
Stoitcho Goutsev \(100\)'s Avatar
Stoitcho Goutsev \(100\)
Guest


 



Re: Running Automatically Generated XAML

Don,

You can generate your xaml code then use XamlReader class to instantiate the
object form it. Then you can add the object to your application from code.
Don't forget that xaml is only a way to declare your tree of objects. When
the application based on the XAML you wrote real objects are created and
after that there is no xaml anymore; there are only .NET objects. The
question is do you really need to use XAML to create your 3D objects at
runtime (in code behind)?


--
HTH
Stoitcho Goutsev (100)

"Don" <dbaechtel@gmail.com> wrote in message
news:1163456571.842827.227850@f16g2000cwb.googlegroups.com...
>I want my VB application (coe behind) to generate a XAML 3D object that
> will appear in a viewport. How do I get my XAML UI to display a 3D
> object that was genereated programatically by my application? Can I get
> a XAML UI to include a file that includes XAML commands at runtime?
> What is the best way to do this?
>



Old 11-13-2006   #3 (permalink)
Stoitcho Goutsev \(100\)'s Avatar
Stoitcho Goutsev \(100\)
Guest


 



Re: Running Automatically Generated XAML

Don,

You can generate your xaml code then use XamlReader class to instantiate the
object form it. Then you can add the object to your application from code.
Don't forget that xaml is only a way to declare your tree of objects. When
the application based on the XAML you wrote real objects are created and
after that there is no xaml anymore; there are only .NET objects. The
question is do you really need to use XAML to create your 3D objects at
runtime (in code behind)?


--
HTH
Stoitcho Goutsev (100)

"Don" <dbaechtel@gmail.com> wrote in message
news:1163456571.842827.227850@f16g2000cwb.googlegroups.com...
>I want my VB application (coe behind) to generate a XAML 3D object that
> will appear in a viewport. How do I get my XAML UI to display a 3D
> object that was genereated programatically by my application? Can I get
> a XAML UI to include a file that includes XAML commands at runtime?
> What is the best way to do this?
>



Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
unread attended attributes are generated not always automatically Erhard Glueck Live Mail 7 07-15-2008 11:47 AM
Automatically Running A Program On Startup? Charles Vista General 6 06-17-2007 10:39 AM
How good is Vista about automatically running installers as administrator? Milhouse Van Houten Vista security 11 05-09-2007 10:49 PM
How to deploy an XAML-based App with its XAML-UI-File? Solveigh Avalon 11 11-08-2006 07:50 AM
Hook into running XAML window for unit testing gui ? Peter Fitzgibbons Avalon 1 02-23-2006 12:18 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50