silverlight-3.0

How to cancel a long running WCF requests from silverlight 3

I have a silverlight 3 application that makes several long running requests to a WCF service. While these calls are in progress, any other later WCF calls are queued by silverlight 3 because it will only do two requests at the same time, thus making the application suck :( How can I cancel the long running blocking requests? ...

Bing maps silverlight control custom pushpin

I tried to make a custom pushpin for the Bing Maps silverlight control, but I can only add 1 pushpin. At the second pushpin I get the following error: System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Collection_AddValue[T](Presentat...

Silverlight Visual Studio XAML Design view not working

I have installed visual studio 2008 sp1, silverlight tools, silverlight sdk, silverlight toolkit 2009 but still when I open silverlight application silverlight tools are not showing on my tool window as well as silverlight XAML Design view(color code formate) is not working. Whole xaml code is coming in black color. ...

Silverlight Threading and its usage

Hello Experts, Scenario : I am working on LOB application, as in silverlight every call to service is Async so automatically UI is not blocked when the request is processed at server side. Silverlight also supports threading as per my understanding if you are developing LOB application threads are most useful when you need to do some I...

Silverlight - Access the Layout Grid's DataContext in a DataGrid CellTemplate's DataTemplate?

Hi, I am using Silverlight 3 to develop an application. In my app, I have a layout Grid (named "LayoutGrid") in which I have a DataGrid (named "PART_datagrid") with DataGridTemplateColumns. The LayoutGrid is set a DataContext in which there is a Ladders list as a property. This Ladders list is set as the ItemsSource for the PART_datagri...

Silverlight. Writable bitmap. Makes bad images from still video. Is there a workaround?

I have code like this: MediaElement me = myPlayer.MediaElement; WriteableBitmap wb = new WriteableBitmap(me.NaturalVideoWidth, me.NaturalVideoHeight); wb.Render(me, null); I want make thumbnails from video in run-time. It works fine with one little quirk. When video in the media element is paused th...

Relative silverlight control positioning

I Have a canvas and would like to place silverlight elements within that canvas relative to each. For example, I have an element (A) at canvas.top="0" canvas.left="5". I would like to place all elements proceeding that one relative to its position. So if i move A to canvas.top="10" canvas.left="15" all other elements would reposition th...

Is there no Label control in Silverlight?

I can't seem to find a Label control in Silverlight. I get compile errors if I put anywhere in my XAML. ...

How to select text in silverlight 3.0 text block

Is it possible to allow a user to select text in a silverlight text block (not text box) as they would be able to in any HTML page? ...

Silverlight 3 + Java WebService

Hello! I have a Silverlight 3 project, and I need to call a Java WebService - the bindings are ok (SOAP 1.1 and basicHttpBinding): ClientConfig File: <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="SkyinfoTestInterfaceExport2_SkyinfoTestInterfaceHttpBinding" ma...

How to bind a property defined as usercontrol in XAML?

In XAML (Root is a UserControl), I have defined a grid with two columns. In a ViewModel layer, I have defined a property as UserControl. The ViewModel is set as DataContext of the XAML. How I can bind this property of type UserControl declarative to the grid? Thanks ...

Creating a burn effect in Silverlight

Does anyone know of a tutorial on how to create a burn effect in Silverlight? ...

How do I bind list items to an Accordian control from the Silverlight 3 Toolkit?

I have a list of objects in a model. I wish to show elements of the DTO's in the list in my AccordianItem panels. The model is like this: public class MyModel { public List<AnimalDTO> Items { get; set; } public MyModel() { Items = new List<AnimalDTO> { new AnimalDTO...

Silverlight ComboBox Attached Behavior

I am trying to create an attached behavior that can be applied to a Silverlight ComboBox. My behavior is this: using System.Windows.Controls; using System.Windows; using System.Windows.Controls.Primitives; namespace AttachedBehaviours { public class ConfirmChangeBehaviour { public static bool GetConfirmChange(Selecto...

Reusing service proxies

I have a set of webservices that I connect to using Silverlight Client. I use proxies generated by "Add service reference" or SLSVCUTIL.exe tool to connect to this service. So far, I have only used one single service. Now I want to use another service on the same server. The problem is that, first service generated set of proxy classes ...

clientaccesspolicy.xml not being requested via HTTPS

I have a silverlight app that has been using http to communicate w/self-hosted WCF services during development. I am now securing the services via https. I am getting an error I had back at the beginning of the project: An error occurred while trying to make a request to URI 'https://localhost:8303/service'. This could be due to attem...

How to display images without taking up huge amounts of RAM

I'm working on a silverlight project where users get to create their own Collages. The problem When loading a bunch of images by using the BitmapImage class, Silverlight hogs up huge unreasonable amounts of RAM. 150 pictures where single ones fill up at most 4,5mb takes up about 1,6GB of RAM--thus ending up throwing memory exceptions. ...

how to dynamically add button to SilverLight datagrid

I have a datagrid that I want to add a button/s to at runtime. I have managed to do this with the below code: DataGridTemplateColumn templateCol = new DataGridTemplateColumn(); templateCol.CellTemplate = (System.Windows.DataTemplate)XamlReader.Load( @"<DataTemplate xmlns='http://schemas.microsoft.com/client/2007' xmlns:x='http:/...

How do I make silverlight button transparent while showing the image?

I have a button that is programatically created, it's content is a stack panel with an image and a textblock. This all works great. I want to make the button behind the image and text transparent, so that the image and text looks like it's sitting on the background, but still have all the properties of the button (i.e. someone clicks i...

What is the equivalent of OnRender in Silverlight?

I'm working on porting an app from WPF to Silverlight. The app uses custom types derived from FrameworkElement (in WPF) to describe shapes, and text to be rendered on a Canvas. The WPF app root node overrides OnRender() to iterate through a collection of 'child' nodes, calling Render on each child node to build the Visual Tree. Silver...