silverlight

Override (IE7) browser keyboard handling from Silverlight

家住魔仙堡 提交于 2019-12-25 00:46:49
问题 When I test my Silverlight 2 app in Firefox, when Silverlight has focus, I have no problem receiving every key press via the Page.KeyDown event. When I test it in Internet Explorer 7, I can only get keyboard events that the browser doesn't already handle. HOWEVER, I can override those same keyboard events in javascript. For instance, Ctrl + D . I can override this in javascript by doing the following, but I can't do the same thing in Silverlight!! function initKeyHandling(){ document

Silverlight 4 HttpWebRequest user agent string is null

Deadly 提交于 2019-12-25 00:42:52
问题 The problem I have a page with a silverlight object. It attempts to retrieve XML from another (external cross domain) page. But I am struggling with a security exception. I have this code working brilliantly in WPF. When using a website hosting a silverlight application with the same code, the user agent string of the HttpRequest object is null (and seemingly cannot be set). In fact there is no header information at all - this causes a security exception when attempting to make my

Need to transform a rectangle's color in Windows Phone 7

南楼画角 提交于 2019-12-25 00:42:49
问题 I have a rectangle, and I have a storyboard: <Storyboard x:Key="PressAndHoldColorBar"> <ColorAnimationUsingKeyFrames Duration="0:0:10" FillBehavior="Stop" Storyboard.TargetName="rectWarning" Storyboard.TargetProperty="Fill"> <LinearColorKeyFrame KeyTime="0:0:0" Value="Green" /> <LinearColorKeyFrame KeyTime="0:0:7" Value="Yellow" /> <LinearColorKeyFrame KeyTime="0:0:10" Value="Red" /> </ColorAnimationUsingKeyFrames> </Storyboard> <Rectangle Height="100" HorizontalAlignment="Left" Margin="12

ListBox display selected Items (Image) in another ListBox (Selection Mode Multiple)

依然范特西╮ 提交于 2019-12-25 00:40:16
问题 I'm just trying to experiment some ListBox functionality in the SelectionChanged event. I have the following controls: 1.ListBox : Name = ListBoxSource (I just added the Image in XAML) 2.ListBox : Name = ListBoxDisplay I just want to iterate and get those items selected from ListBoxSource and display it to ListBoxDisplay . How to do that in the Loop? The Items on the ListBoxSource are only Image controls and no other controls. I cannot find any solutions on the net because most of the

Wp7 Storyboard Animation Setting Appearing Horizon

让人想犯罪 __ 提交于 2019-12-25 00:38:02
问题 I'm just wondering if there is a way to set a vertical threshold of where you want a story board item to appear on the screen (when sliding in and out) so that it doesn't have to slide across everything on the screen when it's popping in and out. I have an list of items that get flipped though according to a timer event but when an item comes onto the screen it passes over all the other buttons and user controls and it doesn't look very pretty. It would be nice if I could just make it appear

setting Bing Maps Silverlight Control Property From Code Behind

爷,独闯天下 提交于 2019-12-25 00:36:11
问题 I need to set the CredentialsProvider from code behind prior to load the control on page. I have "ApiKey" dependency property in code behind and binding it to Bing Maps silverlight Control but it doesn't work. It gives an error "invalid credentials" at run time. Code Behind public static readonly DependencyProperty ApiKeyProperty = DependencyProperty.Register("ApiKey", typeof(string), typeof(MainPage), new PropertyMetadata("")); protected string ApiKey { get { return this.GetValue

Why is Silverlight toast notification only available in OOB app?

荒凉一梦 提交于 2019-12-25 00:28:05
问题 I haven't been able to find an explanation, or think of a reason why it's not available in non-OOB apps. So why is the toast notification only available in OOB apps? 回答1: Silverlight 4 Out-Of-Browser apps can operate in full trust. This is necessary to open a window separate from the primary window. Toast notifications are separate windows. 来源: https://stackoverflow.com/questions/6684366/why-is-silverlight-toast-notification-only-available-in-oob-app

Facebook Silverlight application invalid method (HTTP verb)

做~自己de王妃 提交于 2019-12-25 00:25:45
问题 Hi I made a simple application in Silverlight to facebbok with the facebook C# SDK, and it runs fine in a localhost. I have published on a server and know start the problems. When I try to run the application from the facebook I get the this messege (405 - HTTP verb used to access this page is not allowed.) anyone have any ideias of what is the problem ?? thanks 回答1: That sounds like server/IIS/Web server configuration. Try hosting the web site in an iframe locally and see if you can get

Silverlight DomainCollectionView in VB.NET

拥有回忆 提交于 2019-12-24 23:56:40
问题 Anyone can share the code for the DomainCollectionView in VB.NET? I have an error, Argument not specified for parameter 'op' of 'Private Sub OnLoadProductPMListCompleted(op As System.ServiceModel.DomainServices.Client.LoadOperation(Of ProductPM))'. Public Sub New() InitializeComponent() Dim collectionViewLoader As DomainCollectionViewLoader(Of ProductPM) collectionViewLoader = New DomainCollectionViewLoader(Of ProductPM)(Function() Me.LoadProductPMList(), Me.OnLoadProductPMListCompleted)

From asp.net code behind (aspx.cs) on the server how can I determine if Silverlight is installed on the client?

只谈情不闲聊 提交于 2019-12-24 23:23:24
问题 IIS 6.0 hosting ASP.NET 3.5. From the Visual Studio 2008 aspx code behind (aspx.cs) running on the server I need to determine if Silverlight is installed on the client and if so which version. I know from Java on the client this can be done. That is not what I need. I know I can put in a control that will render if Silverlight is installed. That is not what I need. 回答1: It seems Silverlight does not add any information to the user-agent string that is sent to the server with every request (by