silverlight

Creating controls

I am designing a silverlight application in which i have a image control in the left top corner and when i click the button and drag it to the form i should get duplicate of that control and dragged into my form. Please help me with the code I am trying to create the control dynamically in mouseleftbuttondown event but the controls are...

cloning the controls

I am designing a silverlight application in which i will have a rectangle control at the left side, when i click the rectangel and drag a copy of the rectangle control should be created and dragged and dropped in to the page. Please can anyone help me with the code ...

How to diagnose client-side WCF issues in Silverlight environment?

It seems that WCF diagnostics is not available in SL. Is it because of limited System.Diagnostics support or something else? Anyway, how do you track client-side WCF issues when server-side diagnostics is not enough? ...

Create Dependency Properties for setting Custom EventHandlers in XAML

Hi, i want to do add custom event handlers to default framework elements using DependencyProperties. Something like the following: <Border custom:MyProps.HandleMyEvent="someHandler">...</Border> Here is the code behind for the control that contains the Border element: public class MyPage : Page{ public void someHandler(object se...

Can you set http headers when using HttpRequest object in Silverlight?

I'm having trouble setting any HTTP header values when making a HttpRequest from Silverlight 3.0? Are HTTP Headers supported in Silverlight 3.0? The following code throws an exception when the request callback is called: var url = new Uri("http://lonmw32795/RBSM_Portal_RESTfulWebService/HostInterrogationService.svc/host/enviro...

Silverlight 3 datagrid: How to add scrollwheel support?

Datagrid in silverlight 3 toolkit is not responding to scrollwheel(mousewheel). Is there any way to get support of scroll wheel? ...

Silverlight mouse left button down issue

Hi, In a Silverlight 3 project I am using mouse left button down event on a border control but found out that the event is raised even when I click the button slightly outside the border like 5-10 pixels. Has anyone faced this issue before? Thanks in anticipation! Following is the XAML in which we are capturing the event of brdSelect...

WCF routing service + WIF security + SL = grief

Scenario: I've got an web app that hosts a silverlight app. Silverlight is using the web app to call wcf services. I also have WIF for federated authentication in the mix so the first thing the web app does is it redirects you the the STS to login. Once you login successfully you get a token that is wrapped in an http cookie and sent to...

Bind Nested Child's Foreground to Parent's Foreground?

I have a datagrid in Silverlight 3.0. There are three columns in the datagrid. In the style specified for the datagrid, on mouseover and selected etc., the foreground of the content changes to white. In the first two columns I have TextBlocks. Their foreground toggles between black and white. In the third column, I have a listbox. ...

DataGrid and RIA Domain Datasource control.

Hello All, I am trying to work a simple data display page. In my navigation:page control, I have dragged and dropped a Datasource whose control is a DataGrid. So far so good with no errors or warning when built the solution. When I run the App I see only one row in the Datagrid. There are about 5 rows in the database. It is always the la...

Why is my generic list populated in XAML empty at runtime?

All, I've got a generic list defined in a custom user control. private List<string> m_AnimationNames = new List<string>(); public List<string> AnimationNames { get { return this.m_AnimationNames; } set { this.m_AnimationNames = value; } } I reference this list in xaml, and populate it, like so...

Silverlight Toolkit - Accordian - Styling the Header

Hello, I am using the Accordian in the Silverlight toolkit. I want to style the Accoridan item header (I don't like the default baby blue). But I can't seem to figure it out. Blend won't let me load it up either. Can someone show some sample code of an Accordian Item with just a basic green background? Thank you! ...

How do I handle two assemblies with the same filename during a TFS 2010 RC build?

I am following the CSLA.NET for Silverlight pattern of using the same filename for the business objects assemblies. For example: CSLA.dll // .NET assembly MyProject.Entities.dll // .NET assembly CSLA.dll // Silverlight assembly MyProject.Entities.dll // Silverlight assembly This is done so you can use a si...

Defining a Silverlight column derived from DataGridTemplateColumn

I'm learning Silverlight (from scratch, I'm feeling a bit like a fish out of water here!). I'm having a look at the DataGrid class, and am playing around with custom templates for columns and column headers. I want to display a grid that has a collection of columns that have a small image in the header (different image for each column),...

Setting the colour scheme for a Silverlight app from an external resource

I have a Silverlight 3 application containing six custom user controls. I'd like to load the colour scheme for these controls from an external resource. The code and XAML containing a default colour scheme would be built in the XAP. Then a parameter on the object tag would contain a URL from where alternate colours can be dynamically lo...

plugin to play video content from my blog/website.

I wish to play a video content (in a container) from my website/ blog, when the page is loaded . Similar to that of youtube, dailymotion etc. I wish to give the actual Url to that container, which then plays the video in that location. The basic idea is to hide the actual URL from the user and make the person to view the video from th...

how to put array of user control in the columns of Grid.

Hi I have array of Employee data which includes photo,description, title name,salary. I have to show each employee data in separate panel control structure that means if I have 10 employees there will be 10 panels. and I have to show these panels in a grid which has two columns. Also width of the panel in each column will vary according...

Hosting Silverlight xap file, only white screen displayed...

I have a SL 3.0 xap I want to host in a ASP.NET website, I have access to the XAP file and I have created a HTML page to host the SL component. When I access the page all I see is a white screen where the SL component should be, SL is loaded but the component is not displayed. Any ideas why this is happening? This is the HTML code for...

How to set 'RowLength' for a textbox in Silverlight?

Hi, is it possible to set number of characters per row for a multiline (AcceptsReturn="True") textbox in Silverlight? Like Cols attribute of Textarea in HTML. ...

convert object(i.e any object like person, employee) to byte[] in silverlight

i have a person object and need to store it as byte[] and again retrieve that byte[] and convert to person object and BinaryFormatter is not availabe in silverlight ...