Loose XAML is indeed supported; but in order to have any code you must use a compiled application. So if you're example using a StackPanel has any inline code references, it will not parse correctly, and you'd need to recompile. If you need to deploy a web based XAML Application, check the http://windowssdk.msdn.microsoft.com
site for information on XBAP applications.
If your StackPanel example has no code in it, I'm guessing that it's malformed. If you want to post it to the newsgroup I'd be happy to look at it. Alternately, cut and paste it into XAMLPad and see if it renders. If it doesn't (and it shouldn't, based on your post) you'll see the parse error in XAMLPad and should be able to fix it.
Keith Boyd [msft]
Posted At: Friday, June 09, 2006 10:25 AM
Posted To: microsoft.public.windows.developer.winfx.avalon
Conversation: Loose XAML
Subject: Loose XAML
I have tried to run a XAML application standalone with little success.
If I have a very simple app with just a button it renders correctly.
However if I use something like a stack panel I get errors. Is "loose"
XAML supported? Is it true that you can not add code to the XAML file and have it run in the browser as a loose application?
Thanks for the help