silverlight-oob

How I can use Shell32.dll in Silverlight OOB

 ̄綄美尐妖づ 提交于 2020-01-05 05:50:50
问题 I'd like to get the target information from a shortcut file using my silverlight OOB app, so I'm going to make the following code to work in my silverlight OOB. It seems I have to used P/Invoke to use Shell32.dll, but I'm not sure how I can use Folder, FolderItem, and ShellLinkObject? Most references explain how I can use the functions in the .dll using P/invoke:( Please give me any comments or sample code/links:) public string GetShortcutTargetFile(string shortcutFilename) { string pathOnly

Communicating with a Silverlight 4 LocalMessageReceiver from a Desktop Application

混江龙づ霸主 提交于 2019-12-24 04:35:37
问题 I am working on a little Helper Application for a Silverlight 4 OOB App that can be installed to enhance the capabilities of the SL a bit (improved Clipboard Support, Global Hotkeys etc). I know that Silverlight's Local Message API is based on ALPC which is a rather undocumented Windows API but still, is there a way to talk to the LocalMessageReceiver from a non-silverlight application that I might have overlooked? Otherwise I might need to stick to Plan B: a listening socket in the Helper

Open Silverlight OOB on url, if installed

有些话、适合烂在心里 提交于 2019-12-24 02:27:06
问题 Is there anyway to make the OOB version of my Silverlight app open(if installed) when i go to http://mydomain.com/silverlightapp <--- where the Xap is loaded. Just like a irc client opens when i go to irc://servername but instead of prefix can my app open the OOB version if App.Current.InstallState == InstallState.Installed when it's loaded in the browser?. 回答1: As of Silverlight 4 there is no way of launching oob application from the url. Irc and other applications can register custom url

Can I change Silverlight out-of-browser settings at runtime?

↘锁芯ラ 提交于 2019-12-21 11:33:54
问题 I have a single codebase that can install an OOB SL5 app in various configurations. Based on the configuration at runtime (selected by init parameters) I would like to update the OOB Settings (title, window title) prior to performing the install. It appears that the only way is through the OutOfBrowserSettings.xml file (or the Project Settings UI) at compile time. Am I missing something or is this just the way it is? 回答1: According to MSDN you can do that. To configure an existing application

Can I change Silverlight out-of-browser settings at runtime?

此生再无相见时 提交于 2019-12-21 11:32:43
问题 I have a single codebase that can install an OOB SL5 app in various configurations. Based on the configuration at runtime (selected by init parameters) I would like to update the OOB Settings (title, window title) prior to performing the install. It appears that the only way is through the OutOfBrowserSettings.xml file (or the Project Settings UI) at compile time. Am I missing something or is this just the way it is? 回答1: According to MSDN you can do that. To configure an existing application

Silverlight 5 - OOB install/update broken when using anti-cache trick

泪湿孤枕 提交于 2019-12-18 08:57:43
问题 I was using the timestamp trick on the Silverlight <object> (see GetLastWriteTime() using answers in How do you force Firefox to not cache or re-download a Silverlight XAP file?) successfully with Silverlight 4. Using a Silverlight 5 runtime * , the OOB install/auto-update feature now seems broken. I have two issues: when launching in browser, the current install state is always 'not installed' (in code: Application.Current.InstallState == System.Windows.InstallState.NotInstalled is always

Edit Title in Silverlight 4

大兔子大兔子 提交于 2019-12-13 15:26:07
问题 We are developing an out-of-browser Silverlight 4 application and want to change the title after the application loads. Example: public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); this.Loaded += new RoutedEventHandler(MainPage_Loaded); } public string UserName { get; set; } public string VersionNumber { get; set; } void MainPage_Loaded(object sender, RoutedEventArgs e) { string title = string.Format("MyApplication {0} {1} ", this.VersionNumber, this

Is it possible to launch a Silverlight 4 OOB application from a web page?

女生的网名这么多〃 提交于 2019-12-13 14:08:17
问题 I'm planning to build a download manager application and would like to be able to launch the application when a user clicks a button the site. The application would obviously already need to be installed on the client machine. There are a few reasons why this needs to be written using Silverlight, but they're not really relevant to the question. I only mention it so that people don't suggest that I use another technology. 回答1: I think that is not possible according to this post post 1 and to

How to browse an image using OpenFileDialog and save it in images folder - Silverlight OOB - VB

余生颓废 提交于 2019-12-13 03:02:40
问题 I'm developing an Silverlight OOB application using VB, and I need to implement a method where the user select an image (.png) by an OpenFileDialog file and it saves this image in Images folder in the project, because it's not possible to set a Source to an Image that it's out of project, then I need to save it in Images folder, but I have no idea how to do this, someone helps me please!!! Here's what I did up to now: Dim ofd As OpenFileDialog = New OpenFileDialog ofd.Filter = "Image Files (*

Disabling JavaScript errors in WebBrowser control in Silverlight

我与影子孤独终老i 提交于 2019-12-12 09:10:39
问题 I'm developing Silverlight OOB application and I need to show web pages in it - I would like to do it through out WebBrowser control, but during page load I get lots of MessageBoxes with JavaScript errors. Is there a way of hiding those MessageBoxes? In winform WebBrowser control there is ScriptErrorsSuppressed property that can be used, but in SL there isn't. I would be appreciated for any help. 回答1: Try turning off script debugging in the internet explorers advanced settings. Ultimately the