silverlight

Asynchronous Silverlight WCF callback

为君一笑 提交于 2019-12-24 23:12:16
问题 I've created my own WCF service and I've successfully been able to talk to it via my Silverlight client. I ran into an interesting problem on my asynchronous callbacks though. When my callback is invoked, I can't update any UI controls with the dreaded invalid cross thread access Here's what my callback function looks like private void GetTimeCallBack( object sender, Talk.ClientBase<IService>.ClientEventArgs e ) { lblDisplay.Text = e.Object.ToString(); } A quick google search showed me that I

prevent screen capture

六月ゝ 毕业季﹏ 提交于 2019-12-24 23:02:45
问题 i am developing a video player i silverlight i wanna something to prevent recording or screen capturing i thought about hacking the windows APIs and stop my program from running if there was any of those capturing software asking the user to close it first but i donno how to do this is there another solution ??!!!! 回答1: You could go about using a key hook system, stopping the user pressing the print screen key on the keyboard, that would be a start. There aren't many systems which stop users

WPF/Silverlight NavigationService backstack

落爺英雄遲暮 提交于 2019-12-24 22:32:47
问题 I'm writing an app using WPF (should apply to Silverlight too) where I have a Frame within a main Window and I'm using the NavigationService to navigate through the pages of the Frame. I am using NavigationService.GoBack to successfully return to the previous page but there are times when I will need to go to a specific page within the NavigationService backstack. If the page doesn't exist in the backstack then I will simply create a new page and navigate to it. By doing this, I'm hoping that

Showing Silverlight App in Browser From batch file on Win2008

限于喜欢 提交于 2019-12-24 21:43:36
问题 I am trying to open a web page with a Silverlight App from a batch file on a Windows Server 2008 box. If I put this in the batch file: start iexplore http://www.google.com The google page shows. If I put this in the batch file (where TestPage has a Silverlight Application): start iexplore http://www.mysite.com/Configure/TestPage.html the page shows but with the "Download Silverlight" icon/link. If I browse to that page manually the app shows. Any ideas on how to get around this? I am trying

How do I bind to a custom silverlight control?

岁酱吖の 提交于 2019-12-24 21:12:09
问题 I am having problems binding to my control. I would like the label(lblLabel) in my control to display the metadata from whatever is bound to the Field Property. It currently displays "Field" as a label. How do I get it to display "Customer Name :" which is the Name on the view model for property, CustomerName? My Controls XAML <UserControl x:Name="ctlRowItem" x:Class="ApplicationShell.Controls.RowItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas

open new silverlight window when button click

我的梦境 提交于 2019-12-24 21:02:58
问题 I created a Silverlight window and I want it to appear when I press a button. How can I do that? It doesn't has a "show" method... 回答1: To open a new address in a new window use:- HtmlPage.Window.Navigate(new Uri("the address here"), "_blank"); 回答2: see: Silverlight Simplified MVVM Modal Popup http://www.codeproject.com/KB/silverlight/MVVMPopUp.aspx 回答3: If you want to browse to a new silverlight application hosted in another html page you should use the NavigationService class to accomplish

Silverlight on Windows 8

浪尽此生 提交于 2019-12-24 20:07:50
问题 I'm running my SL5 application (that has been working well so far) on Windows 8, and it is not going well. I have a background picture which usually does not render correctly, almost everytime I navigate my background (including the controls over it) just goes white till I resize IE, then it re-paints (what makes it stranger is that the parts that goes white is outside of the navigation frame, why is it getting repainted). (Chrome renders fine) When I run my application out-of-browser my

How do I add the like facebook button to a silverlight application?

不羁的心 提交于 2019-12-24 19:26:30
问题 I'm new to silverlight 4 development. I need the facebook I like button to be integrated integrated on my website application? Can someone tell me how to do that? Can I download a library that will provide me a user control that is visible in my toolbox, and thus I will be able to just drag and drop this item on my page? If not, how can I implement this functionality? 回答1: You can just download a like button image from here and use the Facebook SDK to like the page. I haven't tried it myself

Implementing .Net RIA Services with Silverlight3 using only existing code/classes? [closed]

人走茶凉 提交于 2019-12-24 19:17:09
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . As my latest questions have stated, i am in a process of researching on Silverlight 3 and its application as a suitable RIA solution to a pre-built

Want to have a slideshow of images on button click in Windows Phone 7

烈酒焚心 提交于 2019-12-24 19:16:52
问题 I have stack of images in a grid and i want to implement a slide show for it.I am using Microsoft VS 2010 Express Edition for Windows phone for implemenitng this.Can someone help ? The code is : using System; using System.Collections.Generic; using System.Windows.Threading; namespace swipe { public partial class MainPage : PhoneApplicationPage { // private DispatcherTimer tmr = new DispatcherTimer(); private List<string> images = new List<string>(); private int imageIndex = 0; public MainPage