0
は、HTMLオブジェクトでinitparamsを持っている:Silverlightの "initparams"、キーの値は、値をロードすることはできません
<param name="initParams" value="location=images/images.xml" />
は、それは場所を設定するための正しい方法は何ですか? MainPage.xaml.csで
:行の
WebClient client = new WebClient();
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
client.DownloadStringAsync(new Uri(Location, UriKind.RelativeOrAbsolute));
void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
string xml = e.Result;
XDocument xDoc = XDocument.Parse(xml);
string xml = e.Result
飛行に、TargetInvocationException。
いくつかのアイデアがありますか?
彼らはまたSystem.Windows.Application.Current.Host.InitParams' 'としていつでも可能です。 – herzmeister
私はそれを知らなかった!ヒントをありがとう! :) – danbord