silverlight-4.0

Shell execute an EXE in Isolated Storage

为君一笑 提交于 2019-12-11 05:35:20
问题 Is it possible to shell execute an exe which is stored in the isolated storage space. In silverlight 回答1: Apperently you can't. From the first answer on the linked article: You can not execute anything outside of the Silverlight sandbox. 回答2: Looks like you can do it in SL 4.0. Check this post http://www.youpvp.com/blog/post/Silverlight-meet-ShellApplication.aspx 回答3: In an OOB app with elevated privs, it should be possible to copy a stream to a file in the users private folders and then use

URI Mapper with query string doesn't seem to work

☆樱花仙子☆ 提交于 2019-12-11 05:29:25
问题 I'm attempting to set up a URI mapper so that in the end, I can pass a query string to the xaml page I am loading. Here's what I have defined in the XAML. <navigation:Frame.UriMapper> <uriMapper:UriMapper> <uriMapper:UriMapping Uri="RequirementOverview/{id}" MappedUri="/View/Pages/RequirementOverview.xaml?id={id}" /> <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/View/Pages/{pageName}.xaml"/> </uriMapper:UriMapper> </navigation:Frame.UriMapper> My Intention is that if you click on a link

silverlight 4, getting html cookies

痞子三分冷 提交于 2019-12-11 05:17:11
问题 In Fiddler 2, Raw data shows the following cookies: __utma_a2a=7477768302.1349257957.1317701031.1318843147.1318844585.14; session="3YZAdX/xEuKVpYZWKBmcbC2S1YE=? _flashes=KGxwMQooUydtZXNzYWdlJwpTJ0xvZ2dlZCBpbicKdHAyCmEoUydtZXNzYWdlJwpTJ0xvZ2dlZCBp bicKdHAzCmEoUydtZXNzYWdlJwpTJ0xvZ2dlZCBpbicKdHA0CmEoUydtZXNzYWdlJwpTJ0xvZ2dlZCBpbicKd HA1CmEoUydtZXNzYWdlJwpTJ0xvZ2dlZCBpbicKdHA2CmEoUydtZXNzYWdlJwpwNwpTJ0xvZ2dlZCBpbicKcD gKdHA5CmEu& _fresh=STAxCi4=&_id

Scrollbar Size in ScrollViewer

隐身守侯 提交于 2019-12-11 05:16:33
问题 How can I programatically determine the width or height of a Scrollbar in the ScrollViewer? Not the current size based on the current state of the ScrollViewer (since I can simply test the visibility of the scrollbar and calculate against the ViewerPortWidth/Height and the ScrollViewer ActualWidth/Height). I need to know what size the Scrollbar's could be based on the templated width. The default is 18 (with a margin of -1). But we all know what could happen if I use the magic number of 18 in

Silverlight - Image URI From Application Root

烈酒焚心 提交于 2019-12-11 05:15:17
问题 I have many Images like this in my various views: <Image Height="32" Width="32" Source="../../Img/TemplateImgs/Icon_299a.png"></Image> Is there any way to tell SL to load the image from the root of the app—something like Source="/Img/Foo.png" I know I could bind to a URI from my ViewModel, and use the Uri constructor to achieve this, but I'd really prefer something simpler. Thanks 回答1: I think you would want to do something like Source="/COMPONENTNAME;component/Img/TemplateImgs/Icon_299a.png"

Rapidly iterating Silverlight development

ぃ、小莉子 提交于 2019-12-11 03:34:51
问题 My current default browser is Chrome (dev). I'm using VS2010 and Silverlight4, with ASP.NET MVC3. I don't seem to have the problems with debugging that I've seen others have. My main complaint is that I regularly have to clear my browser cache to get the latest version of my app to show up. Sometimes I have to clear it two or three times. I've taken to changing the background color of certain elements just to be sure whether I've got the actual latest changes. Are Firefox or IE better in this

Silverlight 4 and System.Runtime.Serialization

允我心安 提交于 2019-12-11 03:17:29
问题 I have a Silverlight 4 project that contains some business objects. I added a Test project. One of the tests is to serialize the business objects from the Silverlight project using DataContractSerializer . To reference DataContractAttribute , I have to add a reference to System.Runtime.Serialization . However, there are different and apparently incompatible versions in the Silverlight runtime and in the .NET 4 Runtime of the Test project. What's the best strategy to serialize objects in a

Creating a Logon Screen

旧巷老猫 提交于 2019-12-11 03:09:42
问题 What is the best way to make password/logon screen? Iread somewhere that it is better to use a popup control. If so where exactly do I need to create it, in App.xaml? 回答1: There are number of things you need to consider while implementing a login screen for your Windows Phone 7 application. Here is a sample that can give you an idea of how to get started, if you haven't. One of the important aspects of a login screen is its appearance on the "back stack" - the list that grows while you are

Validation Tooltip on TextBox becomes orphaned when changing tabs

核能气质少年 提交于 2019-12-11 02:53:48
问题 I have a TextBox on a TabItem inside of a TabControl. Using INotifyDataError changed based validation, when there is an error in the TextBox and you focus on the TextBox a validation tooltip displays. If I navigate to a different tab, the Tooltip stays where it was even though I am on the new tab. Essentially creating an orphaned ToolTip. When I go back to the original tab with my textbox that has the validation error, I can create as many new orphaned validation tooltips by focusing on the

Unit Testing the Server Interface for a Silverlight-Facebook Application

谁说胖子不能爱 提交于 2019-12-11 02:45:35
问题 I have a Silverlight 4 client running on a Facebook page hosted on Google App Engine. It's using gminifb to communicate with the Facebook API. The Silverlight client uses POST calls to the URIs for each method and passes the session information from Facebook with each call. The project's growing and it would be super-useful if I could set up a unit-testing system to make a variety of the server calls so that when I make changes I can ensure everything else still works. I've worked with nUnit