silverlight

Event handlers in XAML or Code Behind

I am new to Silverlight and XAML. While trying to learn the syntax and best practices I continue to come across a discrepancy (or at least to me it seems that way) in the way some implement event handlers. In an example from MSDN I see the following code used: <UserControl x:Class="DragAndDropSimple.Page" xmlns="http://schemas.mic...

Sessionful wcf service in Silverlight

How can I make a sessionful wcf service for Silverlight clients? What binding can I use? ...

Silverlight 3 ComboBox ItemTemplate binding

I have a simple ComboBox in my Silverlight 3 application. I want to populate it from an ObservableCollection. The list holds a class that has a Name(string), and a Selected(bool) property. The combo box has as many items as I have in the list, but I cannot seem to get the list data to appear. Any help would be appreciated. <ComboBox...

Visual Trick in XAML for Sivlerlight

I am trying to create a control which is basically showing a list of pictures in Silverlight, but I want the list to rotate in a sort of 2.5D way. You can think of it as the picture in the middle is YOU, and the others are your friends on social networking site. Here is a sketch of what I mean: As you click the green arrows, the pic...

Dataform fields won't appear

Hello! I am trying to learn how to use the Silverlight 3 DataForm control, because I need to define the DataForm fields myself in the XAML code, that is, I don't want to use the AutoGenerateFields property. My problem is: the dataform works perfectly when the AutoGenerateFields is set to true, but when I create a DataForm and set the fi...

How do I write a secure ClientAccessPolicy.xml file?

I'm using a ClientAccessPolicy.xml file that I think allows pretty much all access to my WCF service: <?xml version=""1.0"" encoding=""utf-8""?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers=""*""> <domain uri=""*""/> </allow-fr...

Silverlight 3 DataGrid - Rounded Corners

Is there an easy way to give rounded corners to the boundary of a DataGrid in Silverlight 3? Thanks a bunch! ...

UserControl exposing multiple content properties! How exciting that would be!

I am trying to create a UserControl that will hopefully be able to expose multiple content properties. However, I am ridden with failure! The idea would be to create this great user control (we'll call it MultiContent) that exposes two content properties so that I could do the following: <local:MultiContent> <local:MultiCon...

Silverlight hosted in Winforms: Alt+Tab focus behavior

We have a WinForms window with a WebBrowser control in it, pointing to a page with a Silverlight 3 control on it. If a Silverlight control has focus and you Alt+Tab away and back again, the focus is gone. Strangely, if you do the same thing again, focus returns to where it was. I’ve tried to manually re-focus the Silverlight control aft...

Silverlight Enabled Services and ASP.NET Compatability

When you create a Silverlight enabled WCF service, the following line is placed in the source file - [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] What does it do? The online help didn't make a lot of sense to me. ...

Silverlight application broken with FileNotFoundException in System.Windows.Controls

I've been working on converting a Silverlight project from Silverlight 2 to Silverlight 3. Note that I've never had SL 2 binaries or development components installed on my machine (it's only a month old). This has been going fine and the app was running until I started getting a build error with ValidateXaml raising a FileNotFoundExcept...

microsoft azure and silverlight

I am interested in developing a site similar to youtube. I want to have a site that users upload videos. I imagine technically the website would upload the video to the azure cloud. Where the file will automatically be encoded to silverlight and hosted. Can azure host my site, take care of encoding and host the videos all programmatic...

Problem in ComAutomationFactory.CreateObject [Solved]

Hi I tried to create object using ComAutomationFactory.CreateObject . It is giving following exception "Failed to create an object instance for the specified ProgId" My application is running on OOB and has elevated permission. if (ComAutomationFactory.IsAvailable && App.Current.HasElevatedPermissions) { ...

How to filter one source to three different set using RIA?

I defined a domaindatasource in the xaml <dds:DomainDataSource x:Name="ddsPayroll" QueryName="GetEnPrcsQ" AutoLoad="True" LoadSize="20" PageSize="20"> <dds:DomainDataSource.DomainContext> <RIASrv:PayrollSrv /> </dds:DomainDataSource.DomainContext> <dds:DomainDataSource.Sor...

Can I use silverlight with other serverside languages?

Hi all, Is it possible to integrate silverlight with PHP. I'm currently using flash, so was wondering if silverlight can be used as a replacement. Thanks, Roger ...

Preload translations from database before Silverlight is loaded

We are storing localization strings in database. Localization is needed for multi language application that we are building. Data layer is behind WCF service, and all data is comming throu this WCF channel. We need to load translations before Slivlerlight application shows up in user browser. So preloading data with this is most logica...

Silverlight 3.0 C# - Using Methodbuilder to create a SET method, and adding the MSIL with ILGenerator and Emit.

Hej All I have some code that builds a new TYPE runtime, it sets the GET and SET method using MethodBuilder. (Its an exampel from the web, and thanks to the Guy, that wrote it, i unfortantly lost the ref. to him, but he is in my thoughts) TypeBuilder typeBuilder = module.DefineType("MyClass", TypeAttributes.Public | TypeAttributes.Clas...

How to add condition to a WPF Context Menu?

How could I add some conditions changing list of MenuItems in a WPF Context Menu, depending on some attributes of clicked objects?: <Grid.ContextMenu> <ContextMenu> <MenuItem Name="EditStatusCm" Header="Change status" /> ... <MenuItem ... /> </ContextMenu> </Grid.ContextMenu> ...

Silverlight not sending cookies in cross-domain browser requests

I have a Silverlight 3 control that makes a cross-domain HTTP request to http:// somedomain/. I am using the browser HTTP stack to make this request. A proper clientaccesspolicy.xml on somedomain is in place. My browser has a set of cookies for somedomain and I want these to by used when said HTTP request is made. When my Silverlight c...

ChildWindow Modality

By default the ChildWindow Overlay covers (and disables) the entire root visual. I want to cover (and disable) just part of my UI. How can I alter the existing ChildWindow to allow me to specify the Root? Thanks, Mark ...