public InfoLinkDecal() { MetaData = new InfoLinkMetaData() { Source = "http://" }; Stretch = System.Windows.Media.Stretch.Uniform; Size = 1; CanResize = false; Stretch = System.Windows.Media.Stretch.None; Center = new System.Windows.Point(1, 1); PinPoint = new System.Windows.Point(1, 1); CanMove = false; OpenUrl = new DelegateCommand(() => { if (!MetaData.Source.StartsWith("http://")) { MetaData.Source = "http://" + MetaData.Source; } #if WINDOWS_PHONE Microsoft.Phone.Controls.PhoneApplicationFrame frame = Application.Current.RootVisual as Microsoft.Phone.Controls.PhoneApplicationFrame; frame.Navigate(new Uri(MetaData.Source)); #elif SILVERLIGHT HtmlPage.Window.Navigate(new Uri(MetaData.Source), "_blank"); #else Process.Start(MetaData.Source); #endif }, CanOpenUrl); }