silverlight-3.0

Silverlight Datagrid edit per row

Is there a way to edit a silverlight 3 DataGrid by row and not by cell? I would like a way to turn off the cell editing functionality and set the whole row in edit state (that should also display the CellEditingTemplate templates). ...

Deploying Silverlight WCF service to IIS server gives error "Consider marking with DataContractAttribute"

I have a Silverlight application with a Silverlight-enabled WCF service. The service passes along a small POCO class with a few string properties, and a List<> of an enum defined in the class. Everything works fine when running using the ASP.NET development server, but when I move the service over to an IIS server (Windows 2003) I get ...

Silverlight changes the io.Stream to byte[]

I have created a WCF service for uploading images , which accepts System.IO.Stream as input parameter and am using streaming. When I added the service reference in Silverlight project then it automatically changed the parameter of my WCF method from System.IO.Stream to byte[]. Can anyone suggest if there is a way around this so that I ca...

Silverlight 3 - How to iterate over a datagrid

Thanks in advance, I am trying to iterate over a datagrid in Silverlight 3. I need to walk thru all items, or just the selected items and pull some of the column data so I can do an updates in my database. So in a button click event I have been trying foreach loops but can't find the right combination. Thanks, Rich ...

RIA.Net Authentication/Complex Custom Profile Settings

I have a database that have quite a bit relational user information that would be handy to load when the user is authenticated. I would like to use the Silverlight Business Application project template and extend the user class that exists in the AuthebticationService.cs file in that project. I have been able to add simple properties t...

Prism V2 not working with Silverlight 3.0

I am currently doing a silverlight application with Prism v2. But when I am adding the reference dlls two dlls are not recoganised. Microsoft.Practices.ServiceLocation.dll & Microsoft.Practices.Unity.dll Can any one give a solution for this? ...

Silverlight DataGridColumn AttachedProperties

I am attempting to create an AttachedProperty for a DataGridColumn within Silverlight 3.0 and I am having some issues. Here is the AttachedProperty: public class DataGridColumnHelper { public static readonly DependencyProperty HeaderProperty = DependencyProperty.RegisterAttached("Header", typeof(string), typeof(DataGridColu...

Adding data to a silverlight HTTP POST Async

I'm trying to send some data using a simple HTTP POST in Silverlight 3.0 but for some reason I can't seem to find a good example on how to do this. So far this works, but how do I send some data along w/ the request? Public Sub SubmitMessage() request = WebRequestCreator.ClientHttp.Create(New System.Uri("http://localhost:27856/Home...

Building Silverlight Toolkit with VS2010 Beta 2

I'm trying to build the latest drop of the Silverlight Toolkit with VS2010 Beta 2. I get errors on all the projects: "Analysis of Silverlight assemblies is not supported." The error code is CA0055. The error goes away if I uncheck Code Analysis in the project properties. Builds just fine in VS2008. What's the problem? ...

How to change the color of some text in textbox - Silverlight 3?

Hello, I have a usual TextBox. I know in order to change the color of some text I can use Run tag. But when I try to use it imperatively instead declaratively (because I need to do that dynamically) I have the text in TextBox like AAA<Run...>Text to be changed in color</Run> and sure nothing in color changes. How can I change the col...

Linq 2 SQL , insert Objects with associated child objects List into database , Silverlight RIA

Hi there. I am doing small Silverlight app which will allow users to Create orders. I have created Linq 2 SQL dbml and dragged there my database tables, "Orders" and "OrderLines" , there is an association between them. Order.ID ~ OrderLine.OrderID, so then i created DomainService for my tables, where i enabled client access, it generated...

Modifying a Silverlight-Enabled WCF service to cooperate using Windows authentication

I have a Silverlight application, and added a Silverlight-enabled WCF service. I would like to deploy this as an intranet solution using Windows authentication without anonymous access. Out of the box, the WCF service adds the following settings to the web.config: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior...

How to display value from a combobox in silverlight?

Hi I'm a designer, trying to learn blend and silverlight, basically what i'm trying to achieve is output the selected item from the comobox into a textBlock. Can any one point me in the right direction or show me some c# on how this is done. This is my current code: private void GetSubmitBtn(object sender, System.Windows.RoutedEventArgs...

Silverlight 3 - Data Binding Position of a rectangle on a canvas

Hi Everyone, I am currently trying to bind a collection of objects to a Canvas in Silverlight 3 using an ItemsControl as below: <ItemsControl x:Name="ctrl" ItemsSource="{Binding myObjectsCollection}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas></Canvas> </ItemsPanelTemplate> </ItemsContro...

Databinding Silverlight datagrid row details template

Hello, I have an objectmodel that has a class Item and ItemsManager which exposes a list of Items objects using Observablecollection Items public class Item { public Name {get;set;} public Description {get;set;} } public class ItemsManager:INotifyPropertyChanged { public Observablecollection<Item> Items; public string It...

Silverlight AutoCompleteBox takes a long time to respond on first "search"

I have a Silverlight application which loads about 2000 objects of half a dozen fields into an AutoCompleteBox. The filter is then set to search on any of four of the fields. I've set it to begin searching after two characters. However, when I type the second character (when the box is supposed to start populating) for the very first ...

Clear Binding in Silverlight (Remove Data Binding from SetBinding)

How do you Clear/Remove DataBinding in Silverlight? similar to: http://stackoverflow.com/questions/186475/remove-binding-in-wpf-using-code But the BindingOperations.ClearBinding() method does not exist in Silverlight 3. ...

Javascript to Silverlight when Silverlight instanciated with object tag

Hi. :-) I've used an object tag to load my Silverlight control because I want to be able to input html into a Sharepoint page using the Rich Text Editor. It looks like this: <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="SilverlightObject" width="850" height="600"> <param name="source" ...

UID/name labels in silverlight for unit testing

I am having a problem naming listbox items in a silverlight listbox. The listbox is bound to a DTO collection so the items are determined dynamically at run time. The listbox, itself, is easily named with the x:Name tag in the xaml in this way: <Client:OurListBox Grid.Row="3" Grid.Column="0" x:Name="OurListBox" ...

Making Silverlight Datagrid Cells not selectable

I have a DataGrid which I am binding to a PagedCollectionView which is Grouped and Sorted. The contents of the DataGrid are not editable although one column contains a clickable link. I have restricted the SelectionMode of the DataGrid to DataGridSelectionMode.Single which stops multiple Row selection which is good. But the selected row ...