Cercando in giro ho trovato questo codice..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace HelloWorld2
{
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
try
{
// Retrieve initialization values (passed from the hosting Web page).
IDictionary<string, string> startupArguments = ((App)Application.Current).InitParams;
// Use the key to get the startup argument.
string strText = startupArguments["dateVal"];
// Find the named element on the XAML page.
TextBlock tb = this.FindName("param") as TextBlock;
// Set the text value to that of the init param.
tb.SetValue(TextBlock.TextProperty, strText);
}
catch (KeyNotFoundException) { }
}
}
}
si rifersice al file Page.xaml.cs della mia applicazione silverlight che dovrebbe mandare il filmato.....
penso che la riga di mio interesse sia questa...
IDictionary<string, string> startupArguments = ((App)Application.Current).InitParams;
ma sinceramente non ho proprio capito come e sotto che forma mandare il mio filmato di cui ho fatto l'encoding!
