Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
App. Visual Studio 6.0
How To Read XAML content file from an XBAP application
giovedì 13 novembre 2008 - 14.51
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
sammy1984
Profilo
| Newbie
1
messaggi | Data Invio:
gio 13 nov 2008 - 14:51
Hi all,
I'm dealing with this problem.
I have an XBAP application that receive some parameters in the QueryString.
With those parameters I can choice the right XAML fragment to display.
Now, my goal is to dinamically load this content via http.
So, for my PoC, I've decided to deploy a loose XAML fragment and to store it in a subfolder of the project.
The application, when needed, executes these instructions
1 Uri u = new Uri("pack://siteoforigin:,,,/resources/fragment.xaml", UriKind.Absolute);
2 StreamResourceInfo info = Application.GetRemoteStream(u);
3 if(info != null)
4 {
5 sw.Write(info.Stream);
6 sw.Flush();
7 }
8 content = XamlReader.Load(info.Stream);
The problem is that info is always null. Why??
The same approach works fine when I run the application within VS
Someone can help?
TIA, Giac.
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !