silverlight-3.0

Enabling direct content creation in XAML on a dependancy object

I have a class CollectionOfThings. As its name suggests its a simple collection of instances of the Thing class. Thing class has a public default constructor and two simple public get, set properties ID and DisplayName, both are string. CollectionOfThing also has public default constructor. In XAML I would like to use markup like thi...

Silverlight 3 Validation MVVM WCF EF

My application is SL2 reading and writing data through an Entity Framework Model exposed via WCF. We have resisted writing any UI validation due to the exicting new validation controls coming from SL3. ...However after doing a trial update on our project yesterday, we realised that most of the standard practices for attaching validation...

Silverlight 3 BETA DataGrid grouping

NB this was for the silverlight 3 beta, RTM seems to handle grouping entirely differently. I've a grid that is working fine, which I'm using the GroupDescriptions property like so: <data:DataGrid.GroupDescriptions> <cm:PropertyGroupDescription PropertyName="ClientName" /> </data:DataGrid.GroupDescriptions> This works brilliantly...

Initparams from ASP.NET in silverlight 3.0

How do you dynamically populate the silverlight InitParameters collection fron ASP.NET (C#, not script) in Silverlight 3.0? Now that they recommend an object tag instead of an asp:Silverlight tag it does not seem to have any sort of 'run at server object' to work with? ...

Issues or reasons against updating Silverlight 2 project in development to Silverlight 3?

I currently have a recently started project in development with a 2010 target date developed primarily in Silverlight 2, making use of the March Silverlight 2 Toolkit. Now that Silverlight 3 is gold, is there any reason to not migrate the project to Silverlight 3 in order to be able to take advantage of added features and improved perfo...

Silverlight - ListBox with a button dynamically bound - how do I get the original list item data?

I've got a ListBox, within it I have a custom DataTemplate that builds a button. Each button represents a selection the user can perform. When the button is clicked, is there anyway I can retrieve the original data record for that bound item? In standard C#, I can create a button and use CommandArgument to pass an ID to an event. Is the...

What changed in the DataGrid that means it won't work anymore?

I have a Silverlight app with a DataGrid containing some custom columns and all was working well. Then I updated to Silverlight 3 tools for VS 2008 SP1 and rebuilt it. Now it has the following problems: Rows aren't added when the collection is modified. The ItemsSource property is (and always has been) set to an ObservableCollection in...

Silverlight 3 released - Has the time come to take Silverlight seriously?

As an ASP.NET developer, I've been eyeing Silverlight from a distance for a while now. But I've been burned by jumping on the Microsoft bandwagon too early in the past when their projects get radically overhauled or binned. I've been reading some good reviews about Silverlight 3.0 recently. So have we reached the point where, as a mai...

Silverlight user authentication

I am currently developing a Silverlight 3 app that needs some sort of user authentication, because the data pulled from a WCF service is user specific. Target audience is the regular Internet - so there is no AD to authenticate against. Here are some of the questions I have concerning that situation: Is there a framework or other mech...

What are the Silverlight 3 alternatives to DynamicResource and Element-based Brushes?

I need to have a custom UI element that can be changed, such as the colour and text used in the application but as a resource - in WPF I can use a DynamicResource to assign brushes, strings etc, however I need to implement this in Silverlight 3 - how can I do this as a StaticResource will not do, and as another question I have a resource...

Problem call WCF service from OOB (Out Of browser) application in Silverlight 3

Hi! I'm very happy to new SL3, so i converted an application from SL2 to SL3. My application works fine on browser but i've some problem out of browser: the installer is ok but when i start the application out of browser i have the following problems: the images in the ClientBin\Images is not show on the application (maybe only the xa...

External Merged Dictionaries Broken in Silverlight 3 RTM?

I just want to reference a resource dictionary in a referenced assembly. Assembly name: ResourceTest.Content Resource Dictionary Path: ./Dictionary2.xaml This was working on SL3 Beta 1: <ResourceDictionary Source="ResourceTest.Content;component/Dictionary2.xaml" /> I tried this in Blend 3+Sketchflow and this works (at design time): ...

Right click in Silverlight 3 out of browser

In Silverlight 2 it was possible to use the browser DOM to get right click events - of course that's not possible for a Silverlight 3 OOB app. Is there any workaround? ...

Combobox in a Silverlight 3.0 dataform

With the new release of Silverlight 3 and the move of the DataForm to the SilverLight Toolkit - does anyone know how to programatically add items to a combobox in a DataForm? There doesn't seem to be any of accessing it via the code file/ Thanks ~Steve ...

Silverlight 3 WriteableBitmap problem

Hi all I'm trying to use the new WriteableBitmap in the Silverlight3 RTM, but I'm failing .. all the examples and demo I've used to look at and played with during the beta are no more working. I understood they've changed slightly the class interface, removing for example the Lock and Release methods (that are still documented in the of...

Has font rendering improved in Silverlight 3?

I have been reluctant to spend much time learning Silverlight due to what I think is one of its main shortcomings: font rendering. Fonts look absolutely horrible especially at small font sizes and I think it makes it completely useless for any serious (business) application. I have noticed developers tend to cover this up by using light ...

Rendering a Heterogeneous Collection of View Models in Silverlight 2

I have a hierarchy of view models representing formatted content: public abstract class ContentPartViewModel : ViewModel { } public class TextContentPartViewModel : ContentPartViewModel { public string Text { ... } } public class TitleContentPartViewModel : TextContentPartViewModel { } public class HyperlinkContentPartViewModel :...

Right click in Silverlight 3 *in* browser

I'm surprised to notice that my right click code no longer works in-browser for Silverlight 3. I think the problem could be that in SL2 I was using the asp Silverlight control and setting the property Windowless=true. That control was removed in SL3 and now I'm using an object tag to display Silverlight content. How can I get this to ...

SSL WCFs with custom binding

Has anyone ever tried to use custom binding with SSL in a WCF web service? I've seen a number of examples on how to do this with basicHttpBinding and wsHttpBinding but the equivalent always fails for customBinding. Specifically what I'm currently working with (the most successful configuration yet) looks something like this: <system.s...

How to delete cookie when silverlight application is closed ?

I am creating an application with silverlight 3.0 . In This application I had create one cookie Now if any end user will close browser then i want to delete data from that cookie. How can i delete that data from silverlight application. ...