silverlight-3.0

Silverlight defaultStyle problem

I have the following scenario: Create a new class library project called Lib1 1.1. Add a new control called control1, Themes/generic.xaml file and specify the default style of control1. Create a new class library project called lib2. 2.1.Add a new control called control2, Themes/generic.xaml file and specify the default style of contro...

Simpler Explanation of How to Make Call WCF Service without Adding Service Ref

In Understanding WCF Services in Silverlight 2, the author, David Betz, explains how to call a web service without adding a service reference in the client application. I have a couple of weeks experience with WCF, so the article was over my head. In particular, although the author gave a lot of code snippets, but does not say what go...

Silverlight Listbox Item Style

How would one go about styling a listbox such that the selection has a different text color than the default view? I've looked at this in several ways and because the ContentPresenter lacks a Foreground property. The default control template of the listbox provides several rectangles which one can use to adjust the highlight color. For...

Silverlight and desktop drag and drop

Is there, in silverlight, the ability to drag and drop files from the desktop into the browser? I seem to remember seeing something about it being a feature in silverlight 3. ...

Integrated Windows Authentication in Silverlight 3?

I understand it was not possible to use Windows Integrated Authentication in Silverlight 2. (See related question). Does anybody know whether it's possible in Silverlight 3? ...

Silverlight 3 datagrid grouping collapse sub-rows

I have a datagrid with groups inside.By default the rows belonging to a specific group are expanded.How can I collapse these rows? ...

silverlight - while creating new project I am getting error "object refernce not set to an instance of an object"

I have just started to use silverlight in visual studio 2k8. I have installed silverlight 3 tools for visual studio 2K8. Now while creating a new project an error is thrown - "object reference is not set to an instance of an object". Screen-shots are attached. Could you guyz please help? Error screen shot Create project screen shot ...

How to dynamically load internal xaml in Silverlight 3 at runtime?

I have a few internal Canvas xaml files which I want to load dynamically at runtime. For example, I want to display the Canvas in a page. However, I cannot seem to get it to work. I've tried using XamlReader, Application.LoadComponent, and using an XDocument; all to no avail. I cannot seem to find the best practice for this on-line ei...

Now that Silverlight 3 has been out for a month...

I haven't noticed any outcries of pain from the community, but then I haven't really seen much of anything as a result of the Silverlight 3 RTM. So... What are your impressions? For those that have migrated from Silverlight 2, was it a smooth process? Have any issues been introduced into migrated applications that seem to be caused b...

Silverlight 3 - Datagrid in Accordian Item - How to set header

Hello, I have an Accordion control to which I have added a datagrid. The problem is that I cannot set the header of the accordian item that displays the Datagrid. I can only set the header on the object of the class AccordionItem and not when the Datagrid is added to the Accordion. I also tried to add the Datagrid to the Accordionite...

voice recording with silverlight

How can you record voice in silverlight? Are there any examples showing voice recording in silverlight? ...

Delete ListBoxItem from ListBox when button in ListBoxItem is cliecked.

I have a ListBox whose ListBoxItems are generated by a data template. I have a button in the ListBoxItem style that has a button for removing the list item. When the user clicks the button, because it receives focus, the ListBox never has a SelectedIndex. Therefore the Click event on the button is never able to delete the ListBoxItem. Is...

Simple silverlight open-file-dialog errors

A while back I wrote a silverlight user control which had a csv import/export feature. This has been working fine, until recently I discovered it erroring in one scenario. This may have been due to moving to Silverlight 3. The Error: Message: Unhandled Error in Silverlight 2 Application Code: 4004 Category: ManagedRuntimeError Message:...

Silverlight Validation - How to stop user submitting invalid data.

Hi, I have a ChildWindow whre user enters some data in a text field. Now when he clicks submit button I need to close the ChildWindow only if the data entered is valid? How to check that? I have searched and seen many examples for how to validate the textbox but I need to know how to see if everything is valid and let user close the win...

asp:silverlight

While using <asp:Silverlight ID="Xaml1" runat="server"/> an error occurs. What can we do? ...

Silverlight 3 onload event binding multiple instances

I have two silverlight instances embedded in a page like follows (content simplfied to relevant details only):- <object id="SL1" data="data:application/x-silverlight-2," type="application/x-silverlight-2"> <param name="source" value="/clientBin/Common.xap"></param> <param name="minRuntimeVersion" value="3.0.40624.0"></param> <p...

Is there any version problem in Silverlight 3 beta?

I have deployed website using silverlight 3.0.40307.0. It is working perfectly in Local IIS. But when client will installs the newer version of silverlight like 3.0.40626 or higher, It wan't be able to view website. How to get silverlight 3.0.40307 (old version of 3.0 beta)? What is the possible solution to deploy silverlight website o...

Open page in silverlight out of browser

Hello, Is there any way to open a page in the browser by ckicking the app in out-of-browser mode? Thank you ...

Trouble importing third party modules when hosting IronPython in SL.

I am hosting Python in a SL app. Basically i have an attached property that lets you pass Python script which then gets executed on the lost focus event of the element. The IPY integration works fine as long as I don't need any 3rd party imports. I copied the formencode package to the site-packages folder under Program Files\Iron Python...

How to detect the OS from a silverlight application?

Hello all, I have a Silverlight3 application that is meant to run on both Windows and Mac OS environments. I would like to know in runtime if my application is running on a Windows or Mac so I can tweak a few things to the way users are accustomed to in their operating system of choice. For example, in Windows it is the norm to use "O...