silverlight-4.0

Silverlight 4 screen capture function

Hello everyone, I am wondering whether Silverlight 4 is able to capture screen as image or capture screen operations as video? Or both? Is there an online Demo to experience the effect? I am using C# + .Net 4.0 + VSTS 2010 + ASP.Net + III 7.5. thanks in advance, George ...

Silverlight 4 - XamlParseException: Failed to create a 'System.Type' from the text 'local:CustomerEntity'

I am getting this exception when trying to debug a Silverlight 4 application in Visual Studio 2010. The exception will be thrown after it passes the InitializeComponent() line. The exception will only happen during debugging, but it does not seem to be a problem to the Visual Studio Designer. System.Windows.Markup.XamlParseException occ...

WCF communication with a Silverlight application

I have previously built WPF apps that host their own WCF service running on a custom port. Which is a great simple way for other apps to send messages between each other. I have recently inherited a Silverlight 4 app from a client and they would like a way to send messages to it. I figured that WCF would be a simple way, but it is not p...

How to force control ignore any gui events in Silverlight

Hi folks, I have a simple page with canvas control. Inside canvas I have some SL controls like buttons, textboxes etc. Also I cover the controls by semi-transparent Image control. So, when I click on some button, the click message doesn't reach the button, because I click on Image. Is there a way to say the Image that it must not han...

Silverling Binding from Object

I have a listbox and as ItemsSource I give it an IList . In this object exists another object with name {User} and I am trying to Bind the property {Username} onto a textBlock. I tried something like this but with no luck <TextBlock x:Name="usernamtTBL" Text="{Binding 'User.Username'}"/> This is the full XAML code of listbox <List...

Silverlight 4 DataGrid column header style

I am trying to affect the background pattern on a DataGrid in Silverlight 4. I have the following style: <Style x:Key="DashboardGridHeaderStyle" TargetType="primitives:DataGridColumnHeader"> <Setter Property="FontSize" Value="14" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Propert...

Silverlight fluidLayout fail

So this is going to be a bit difficult to explain, but I'll give it a go an hopefully someone will recognize what I'm talking about. So I have a StackPanel in which there are 3 Buttons and 3 Lists there are also 3 VisualStates that represent the "open" state of each list (it's an accordion). By default each element's height is set to 0...

Silverlight 4.0 Copy Paste data into AutoComplete Box

Hi, I am using a Autocomplete textbox for "like" search text from Database using KeyDown Event. One of the scenario is COPY-PASTE textname to Autocompletebox where data is already available in Database. I was unable to complete this scenario because when i am trying to paste the text, "Ctrl" is getting fired instead of "Ctrl+V" from k...

Unable to sign a XAP file

I'm trying to sign a Silverlight 4 OOB application (XAP file). I use the following command: "C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\signtool.exe" sign /v /f path\to\FILENAME.pfx /p PWD path\to\FILENAME.xap and I get the response: The following certificate was selected: Issued to: COMPANY NAME Issued by: Thawte Cod...

Silverlight: connecting to secured ASMX service

I need to connect to an ASMX secured web service over HTTPS using Silverlight 4. I have been able to connect to the service using a WPF application using the following configuration: <binding name="wsSomeWebService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies...

Image url to byte array using Silverlight

How to convert image url to byte array or stream using Silverlight? ...

question about Shared Policy in MEF with Silverlight

this is the table from the official MEF document Part.Any Part.Shared Part.NonShared Import.Any Shared Shared Non Shared Import.Shared Shared Shared No Match Import.NonShared Non Shared No Match Non Shared My question is that for the "No Match" case(Export is shared...

MVVMLight Toolkit, App.xaml, MergedDictionaries, global locator

Does anyone know how to use the ViewModelLocator in App.xaml, and also have MergedDictionary entries when using the MVVM Light Toolkit? I used the MVVM Light app template, and simply added a reference in App.xaml to my Styles.xaml, and am now getting the error below, but only when I include the entry for the view model locator. Here is...

How to define resources AND a MergeDictionary with a key in a SL4 page

This is probably a really stupid question but I can't figure this out. I have a page with a MergeDictionary defined: <navigation:Page.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="../Assets/TourneySetupStyles.xaml"/> </ResourceDict...

How to read twitter public time using Silverlight 4.0

Hi, Can anyone who can give me a step by step instruction on downloading my twitter public time line using Silverlight 4.0? I already have a consumer key, consumer secret, token and token secret. Thank you in advance/. ...

Where are all my methods of NavigationService and NavigationContext?

Hello, I can't see my Navigate method or for that matter any method of NavigationService and NavigationContext of System.Windows.Navigation. The intellisense doesn't show up. I can see only two method named Equals and ReferenceEquals. This looks very funny. What did i do wrong? Thanks in advance :) ...

How get data from Microsoft Outlook with Silverlight?

Hi all. I need to get information from Microsoft Outlooks calendar to show it on calendar application which I made with Silverlight. I can get all needed information with Silverlight 4 but in trusted mode and my application must be installed on users computer and work as Desctop application. But I need for my application to work on brows...

In Silverlight, having refresh problem on a datagrid and a tooltip on a cell when grid is sorted.

Using SL4, I have a DataGrid defined as follow (simplified) <UserControl.Resources> <ResourceDictionary> <DataTemplate x:Key="MyDataTemplate"> <Grid> <TextBlock Text="{Binding SomeField}"> <ToolTipService.ToolTip> <ToolTips:ToolTip> ...

Silverlight 4 screenshot OOB

Hi ya'll, Currently I'm trying to do create an out of browser application that captures the whole screen. Not just the Silverlight application. Now I know that this is not possible with plain Silverlight & C#, but you need to do some dllimports and stuff, it needs to run OOB and you need an elevated application. That is no problem at ...

Clean method of providing blank first value in Silverlight Combobox?

I've got a combobox in silverlight that is bound to a list of objects in XAML coming from RIA servcies. Is there a clean method to add a blank value for the first item so that users have to click the dropdown in order to select something? Right now, it just displays the first item, even if the selected index is set to -1. ...