silverlight-3.0

silverlight datagrid row highlight dynamically

Hello, I have a datagrid populated with data and holding 8 columns. One of those column is "Verification Status". Now this "Verification Status" column contains Values "Yes" or "No". What I want to achieve is that when the grid is loading based on the values (Yes or No) I want to dynamically change the datagrid's row background color to...

Getting mapping error. After dragging table with xml fields into dbml file and then compiling.

"Error 1 DBML1005: Mapping between DbType 'Xml' and Type 'System.Xml.Linq.XElement' in Column 'XML_LAYOUT' of Type 'QUEST_BLOCK' is not supported." The above is the error am getting. What am doing is dragging a table with xml fields as columns from server explorer into a dbml file. After that when i compile i am getting the above error....

In WebBrowser control get Silverlight Canvas

I have a webbrowser control that loads an html page which contains a silverlight object. I want to use the webbrowser control to get the silverlight canvas so that I can pass it to a WriteableBitmap() object. The silverlight is being loaded into a div called SilverlightHostControl and I am trying to get it like this in C#: object elem...

Silverlight 3 Application Background

I am new to Silverlight development. I have created a nice png file in Expression Design. I would like to use this png file as the background for my application. When I set the Stretch property to fill, it does not fill the entire page like I think it should. Here's the xaml: <Grid x:Name="LayoutRoot"> <Grid.Background> <ImageBru...

Silverlight Selecting text with doubleclick

In a standard text box, say ASP.Ne if you have say a order number, something along the lines of this => 177-1111 if you double click on any of the first 3 chars '177' then '177' is selected, and you can then Copy that using Ctrl+C if you double click on any of the '1111' chars, it selects only 1111. In Silverlight, using a textbox, an...

Style Combo Boxes in Silverlight 3.0 (Expression Blend 3)

Hi, In blend I would like to style the custom look of a combo box. When I choose "edit this template as a copy" I create an instance of the control so that I can edit it. However, when I go to change the simple "base" state "style" I cannot. For example - I would navigate to the gradient section and choose to change the gradient. When...

Strange Behaviour in DataGrid SilverLight 3 Control

Here is the my Xaml Code. Here I have changed the Foreground of the cell depending on the current age of the person. <data:DataGridTemplateColumn Header="First Name" Width="150" MinWidth="150" CanUserReorder="False" SortMemberPath="FirstName"> <data:DataGridTemplateColumn.CellTemplate> <DataTemplate...

Parent Child using DataGrid SilverLight 3.0

Can anyone have idea to show DataGrid in the RowDetail of the Row in the dataGrid, I want to show datagrid in the detail of the grid row. thanks in advance ...

Multitasking and Multithreading in silverlight

I have a silverlight application in which i have multiple requests that goes to the server.I want that all these request to be synchronized i.e by means of queue or by means of multitasking.What is the best mean of doing so.Plz provide some example in silverlight where io could do so. ...

Can' Add window Class library in Silverlight project

Can Any body tell why window class library can't be added in the silverlight project. I have created window class library but can't add that class library in the Silverlight project ?? any idea why is this so ?? I have created silverlight application in version 3.0 ...

CultureInfo on a IValueConverter implementation

When a ValueConverter is used as part of a binding, one of the parameters to the Convert function is a System.Globalization.CultureInfo object. Can anyone tell me where this culture object gets its info from? I have some code that formats a date based on that culture. When i access my silverlight control which is hosted on my machine, ...

How can I set the maxItemsInObjectGraph property programmatically from a Silverlight Application?

I have a Silverlight 3.0 application that is using a WCF service to communicate with the database, and when I have large amounts of data being returned from the service methods I get Service Not Found errors. I am fairly confident that the solution to it is to simply update the maxItemsInObjectGraph property, but I am creating the servi...

Can I display twovalues in a Silverlight TextBlock?

Can I data bind two proporties values in a single textblock. For Example some thing like following, though this is noth the correct code: <TextBlock Margin="5" Text="{Binding property1,Binding property2}" Style="{StaticResource Style1}" /> I want to display two values in a single text block . Thanks, Subhendu ...

SilverLight 3.0 DataGrid LoadingRow Event

Following are my Question regarding the LoadingRow event of the Datagrid When will it fires after the Row is bound to the data or after that. As if you debug the Silverlight application then of first execution if you type following code ((System.Windows.Controls.TextBlock)(((System.Windows.Controls.ContentControl)(((DataGridRow)e.Row)...

WCF Ria Services Error : Load operation failed for query 'GetTranslationProgress'

Hello, I am using WCF Ria Services beta in my silverlight application. I have a long running task on the server which keeps writing its status to a database table. I have a "GetTranslationProgress" Ria Service Query method which queries the state to get the status. This query method is called continuously at a regular interval of 5 seco...

Need to call Silverlight Handler event and then serverside event on Page submit.

I have a Silverlight control on page which has a upload control. the silverlight exposes some events such as StartUpload() => To start the file upload, StopUpload() => To stop the file upload if running, CheckFileStatus() => to check the status of the file upload. The page has aspx Submit button with onclientclick event and ocClick ...

Setting the focus of listboxItem on pageload in Silverlight.

Hi, I want to set focus on the first item of the listbox , on pageload. I can not use : listArtist.SelectedIndex= as I navigate to another page on selected indexChanged. I have the following code , but it is not working: void Event_Completed(object sender, RMSResponseEventArgs e) { listArtist.ItemsSource = e.eOutData...

Child Window Template SilverLight 3

How to change the GUI of the child window in silverlight , how to apply template or style any good example reference will help. thanks in advance For addition information: I would like to change the title bar shape, the close button shape and the body area shape as well, you can say I want to change the View of the childWidow control. ...

How to read nested XML using xDocument in Silver light?

Hi currently I have a nested XMl , having the following Structure : <?xml version="1.0" encoding="utf-8" ?> <Response> <Result> <item id="something" /> <price na="something" /> <?xml version="1.0" encoding="UTF-8" ?> <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://pur...

Can Silverlight (SLOOB) start a process even with full trust?

I have been tasked with writing an installer with a silverlight out of browser application. I need to. get the version off a local EXE check a web service to see that it is the most recent version download a zip if not unpack the zip overwrite the old EXE start the EXE This installer app is written in .NET WinForms now but the .NET ...