out-of-browser

Silverlight 4 and out of browser

家住魔仙堡 提交于 2019-12-05 12:31:35
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. 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: Xaml <UserControl.Resources> <Storyboard x:Name="Storyboard1"> <DoubleAnimation Duration="0:0:1" To="750"

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

非 Y 不嫁゛ 提交于 2019-12-04 16:19:45
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 by WebBrowser control within ChildWindow but when I click an anchor in HTML page, which linked to

Silverlight custom Tabcontrol Design

橙三吉。 提交于 2019-12-04 14:17:39
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 that may be a third party tabcontrol. and one more thing, if I add more TabItems I want it to be added

Uninstall out-of-browser silverlight application programmatically

不羁的心 提交于 2019-12-03 07:43:12
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, 1, true); Is there any better solution? Pretty certain this isn't possible without resorting to COM

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

送分小仙女□ 提交于 2019-12-01 21:29:35
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? LBugnion 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 application with elevated permissions, you can change the chrome of the window and define your own. This

Silverlight 5 Trusted Mode. Accessing FileSystem and Local drives

你说的曾经没有我的故事 提交于 2019-11-29 08:07:27
Is there any way, any chance at all to access entire filesystem in SL app with elevated trust? That will work both in Windows and Mac? Through AutomationFactory , PInvoke or unmanaged code? I need an app that could read local drives, folders and files. UDP: Ok, seems it's possible to read folders and files using classes of System.IO from mscorlib. Although you still can't get information about local mounted drives. There is no DriveInfo in Silverlight's mscorlib :( Ok I have an idea about this. It is straightforward enough with Windows, to get the list of the local drives you can use

How to set focus on TextBox in Silverlight 4 out-of-browser popup

烈酒焚心 提交于 2019-11-29 07:58:12
I have a simple ChildWindow popup in Silverlight 4 (beta). Important: This is an out-of-browser application. i want to auto set focus on a TextBox control when the window opens. I've tried a couple things : The following code doesn't seem to do anything. I don't think the control is ready to be focussed after 'Loading'. private void ChildWindow_Loaded(object sender, RoutedEventArgs e) { textBox1.Focus(); } This works, but its klunky. private void ChildWindow_GotFocus(object sender, RoutedEventArgs e) { if (_firstTime == true) { textBox1.Focus(); _firstTime = false; } } Isn't there a better way

Silverlight 5 Trusted Mode. Accessing FileSystem and Local drives

时间秒杀一切 提交于 2019-11-28 01:52:26
问题 Is there any way, any chance at all to access entire filesystem in SL app with elevated trust? That will work both in Windows and Mac? Through AutomationFactory , PInvoke or unmanaged code? I need an app that could read local drives, folders and files. UDP: Ok, seems it's possible to read folders and files using classes of System.IO from mscorlib. Although you still can't get information about local mounted drives. There is no DriveInfo in Silverlight's mscorlib :( 回答1: Ok I have an idea

How to set focus on TextBox in Silverlight 4 out-of-browser popup

妖精的绣舞 提交于 2019-11-28 01:26:44
问题 I have a simple ChildWindow popup in Silverlight 4 (beta). Important: This is an out-of-browser application. i want to auto set focus on a TextBox control when the window opens. I've tried a couple things : The following code doesn't seem to do anything. I don't think the control is ready to be focussed after 'Loading'. private void ChildWindow_Loaded(object sender, RoutedEventArgs e) { textBox1.Focus(); } This works, but its klunky. private void ChildWindow_GotFocus(object sender,