silverlight

Error in WCF service - Silverlight client communication.

I created a WCF service and I planned to consume this in a Silverlight application. So I created the WCF service in the Website host project. The service is a simple WCF service that only returns a number - something like a Hello World WCF-SL. So after adding a service reference in the silverlight client project to the Service URI, after...

Setting a min/max zoom for Bing maps in Silverlight

I am using the Silverlight sdk for Bing Maps. I have my map, I have my PushPins all mapped out. Now I want to disable the user from zooming out so far they see the whole world and keep it constricted to the just the US. It would be nice if there was something simple like Map.MaxZoom but there is not. Any help? ...

Save binarydata into a image file in c# / silverlight 3

byte[] binaryData = new Byte[pngStream.Length]; long bytesRead = pngStream.Read(binaryData, 0, (int)pngStream.Length); string base64String = System.Convert.ToBase64String(binaryData, 0, binaryData.Length); I hav...

What would cause my Silverlight .xap to quadruple in size suddenly?

I've been working on a Silverlight application. I just noticed that the .xap file is now four times as big as it was, what could have caused that? Here's some other info: there seems to now be many more language settings in the bin/Release directory I checked "Reduce size of .xap" in under Properties/Silverlight but that just brought ...

Where are Silverlight assemblies stored when a xap file is run?

We currently have a XAP file which contains Foo.dll, and another XAP file (with a completely different name) which contains an updated version Foo.dll (but the same version number). When we run the second XAP file, it looks as though the Silverlight runtime on the client, is picking up the old version of Foo.dll from the first XAP file....

How to make the ChildWindow Fulscreen?

Hi , I have a ChildWindow , in which I have a Video Playing in Expression MediaPlayer. When I press the FullScreen Button then the whole Application switch to FullScreen Mode , but I want only the Child Window to be Full Screen. Thanks, Subhen ...

Disabling a CellEditingTemplate programmatically in in a Silverlight DataGrid

I have a Silverlight Datagrid, I'd like to make certain cells readonly programmatically. Specifically I have a CellEditingTemplate, I'd like to turn the cell editing off or on depending on the value of CategoryTypeName (see the xmal below). <local:DataGridTemplateColumn Header="Category" > <local:DataG...

SL 4 and WCF DataService: InvalidOperationException -> SecurityException

Hello, you will think: "This problem has been solved many, many times. So why doesn't he use Google?" Please, believe me, I tried everything. I'm dealing with this problem since last week. I read many blogs and searched the MSDN. But I don't get it. So here is the problem. There is one Silverlight 4 app and a WCF DataService, both are ...

Convert WPF application to Silverlight

Hello friends. I have WPF Application. Is it possible to quickly convert WPF app to Silvelight application, if not which technic I have to use to transform my WPF app to Silverlight. And also I want to know about limitations of Silvelight app. Thank you in advance. ...

Error-invalid length for a base-64 char array

Hi , I have silverlight app that post some data to another web application ,the data to post is converted to base 64 using code byte[] byteArray = Encoding.UTF8.GetBytes(sDataToPost); sDataToPost = Convert.ToBase64String(byteArray); Another webapplication get the data using the code strText = System.Text.Encoding.ASCII.GetString(Sy...

geting information from Treeview with HierarchicalDataTemplate

Good day! I have such a template: <common:HierarchicalDataTemplate x:Key="my2ndPlusHierarchicalTemplate" ItemsSource="{Binding Children}"> <StackPanel Margin="0,2,5,2" Orientation="Vertical" Grid.Column="2"> <CheckBox IsTabStop="False" IsChecke...

How to debug a webservice hosted by an IIS in a Silverlight application

Anybody knows how to debug a web service hosted by an IIS in a Silverlight 4.0 application? My IIS version is 7.5 and my operating system is windows 7. Can you please specify the steps on how to? Thank you so much ...

Binding between Usercontrol with listbox and parent control (MVVM)

I have a UserControl which contains a listbox and few buttons. <UserControl x:Class="ItemControls.ListBoxControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.o...

Tabitem.focus only focuses on tabitem header

Hey. I have a tabcontrol that is bound to an observable collection. I've tried doing var tabitem = (TabItem)this.SingleOrDefault(ti => ti.Name == tabname); tabitem.Focus(); ((UserControl)tabitem.Content).Focus(); And it does seem like it focuses on the tabitem, but only on a btn in the header of the tabitem, not on the conte...

404 error with ClientBin

I have a few .xap files under my clientbin folder. However I am not able to get the silverlight controls working as it seems to get a 404 error - fiddler says so :) Much appreciate your help ...

silverlight dataform control unavailable

I have RIA services installed and also have silverlight 3.0 but there is no system.windows.controls.data.dataform . On account of this, I am unable to use dataform control . WHat should I do?I have also tried to download the same but unable to find it. ...

Take Screenshot of current user control or any GUI in Silverlight 3

Hi all, I would like to ask if it is possible to take screenshot of current user control programmatically and save as a file in silverlight 3. I found some ways to save as an image file for a Canvas in silverlight 3, but how about user control or childwindow ? Thanks, ...

Custom Fill Property on PathGeometry in Silverlight

I've been looking at (and getting confused by) Dependency Properties - I'm not sure if this is what I need or if there is something else. I'm looking to something very specific with <Path.Data/> children in Silverlight, in particular <PathGeometry/>, <EllipseGeometry/>, etc. While the <Path/> element has a .Fill property, I'd like to a...

Adding Service Reference to a WCF Service in Silverlight project defaulting to XmlSerialization for DataMembers instead of SOAPSerilaization

Hi, I am adding a WCF Service Reference in a Silverlight project, it is generating code with XmlSerialization attributes for DataMembers than SOAP Serialization. But, if the same WCF service reference is added in an ASP.Net project, is generating code with SOAP Serialization attribtues. Can anybody let me know what could be the cause fo...

Silverlight File download from client

I have a Silverlight application that implements some basic CRUD operations on a fairly flat data set. The application loads all the data onto the client to allow for quick editing (this is a fairly small data set no more that a couple K). I would like to allow them to download the file as a CSV so they can edit the data locally. I kn...