out-of-browser

Silverlight 4 and out of browser

十年热恋 提交于 2020-02-02 04:07:57
问题 Does any one know if its possible to animate app.current.mainwindow.width so that you get a nice animation with easing if you programatically resize the oob apps window. Thanks. 回答1: The simplest way is to add a slider control to your page. The slider can be collapsed and is only used to have an easy propery to animate. Animate the Value property of the slider. In the ValueChanged event of the slider update the window width. You need elevated thrust to do this. It looks something like this:

Silverlight 4 and out of browser

怎甘沉沦 提交于 2020-02-02 04:07:15
问题 Does any one know if its possible to animate app.current.mainwindow.width so that you get a nice animation with easing if you programatically resize the oob apps window. Thanks. 回答1: The simplest way is to add a slider control to your page. The slider can be collapsed and is only used to have an easy propery to animate. Animate the Value property of the slider. In the ValueChanged event of the slider update the window width. You need elevated thrust to do this. It looks something like this:

How can I prevent the user from resizing the silverlight out-of-browser window?

↘锁芯ラ 提交于 2020-01-11 09:44:29
问题 I have a silverlight app which can be installed as out-of-browser . I've defined the Height and Width in the main UserControl . I've defined the same Height and Width in the OutOfBrowserSettings.xml file. But the user can still resize the out-of-browser frame window. How do I prevent this? 回答1: The window hosting the Silverlight application cannot be controlled by the application when it is running with normal permissions, that would be a security issue. However, if you install the OOB

How do I set a minimum width and height for my Silverlight 4 OOB application?

此生再无相见时 提交于 2020-01-03 18:59:09
问题 Is there a way to set a minimum width and height for my Silverlight 4 out-of-browser application? 回答1: There are no built in settings to control the window Minimum Width and Height so you will need to handle it with code. First of all your OOB app needs to have Elevated Trust. You then need to attach a handler the SizeChanged event of the FrameworkElement being used for the application's RootVisual (usually MainPage.xaml). In the handler include code like this:- if (Application.MainWindow

Silverlight custom Tabcontrol Design

南楼画角 提交于 2020-01-01 16:06:55
问题 I am Newbie to development and am going to develop a Windows-based project using Silverlight. I chose to make an OOB app (silerlight Out Of Browser application). In my project I am going to use a TabControl. I am able to display a TabControl with the help of MSDN document and have Dynamically added TabItems in TabControl. My problem is in my TabControl only one TabItem should be fixed like Google chrome Plus button but couldn't find any tutorials or documentation for this. If I found anything

Uninstall out-of-browser silverlight application programmatically

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 03:14:23
问题 How to uninstall out-of-browser silverlight 4 application programmatically instead of using the contextmenu (e.g. if I want to replace the context menu)? Edit I have found in "Installing Silverlight applications without the browser involved" how to uninstall by calling the command-line: "%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" /uninstall /origin:silverlight.net/content/samples/apps/… This can be used in:- dynamic cmd = AutomationFactory.CreateObject("WScript.Shell"); cmd.Run(run,

Closing a Out of Browser application in silverlight from the code

烈酒焚心 提交于 2019-12-23 06:21:57
问题 How do I close an out of the browser application in silverlight programatically. I want to bring in the same functionality as the control box close, from the code based on some condition. How do I acheive it? 回答1: As simple as that :) App.Current.MainWindow.Close(); 来源: https://stackoverflow.com/questions/8036464/closing-a-out-of-browser-application-in-silverlight-from-the-code

How to open window pop-up from Silverlight Out-of-Browser?

房东的猫 提交于 2019-12-21 21:17:06
问题 I need to open window pop-up from Silverlight Out-of-Browser application. I've added parameter <param name="enablehtmlaccess" value="true" /> in Index.html, but executing this from code behind: HtmlPage.Window.Navigate(new Uri(myUrl), "_blank", myFeatures); still returns error: Silverlight OOB Error: The DOM/scripting bridge is disabled. I've read about this post, does it mean that I can't open pop-up from OOB? Why I need to do this, because actually I've shown the HTML page in OOB

Silverlight 4 OOB application access HTML DOM of the page in WebBrowser control

我怕爱的太早我们不能终老 提交于 2019-12-14 03:57:22
问题 Does anybody know if it is possible to access and manipulate an element in the html page that is rendered by the Silverlight 4 WebBrowser control. The scenario is like this. The user launches a Silverlight OOB application with elevated trust. The user manipulates some data in the application but must submit part of the data to an external web site. If I open the external site in a WebBrowser control, is there any way I can assist the user by pre filling some information in the external sites'

How does one change the background color for a loading out-of-browser Silverlight 3 application?

梦想与她 提交于 2019-12-12 13:43:05
问题 When running our Silverlight 3 application out-of-browser, startup takes a little time, but it's long enough to be noticeable. During this startup, the background of the window hosting the application displays an ugly white background color. When running in-browser, we have a splash screen, but that's loaded via JavaScript of course. How can I get a splash screen working for an out-of-browser Silverlight 3? Or if that's not possible, is there a way I can at least change the background color