silverlight

Silverlight Usercontrol question

Lets say I create a user control with a button for a silverlight navigation app. I want to use this user contol on several pages. Each of the pages has a function called void changecolor() { //process request } When the user clicks the button I want it to call the changecolor() function. Any ideas on how to do this? ...

Very simple Silverlight File Upload example

I'm looking for a very example file upload code snipplet/solution in Silverlight. Having done search I've found numerous controls/projects but all of them were quite complex; supporting multiple file upload, file upload progress, image re-sampling and lots of classes. I'm looking for the simplest possible scenario with short, clean and ...

msbuild scripts having problem with silverlight app

Ok. here's my scenario. On the build server I run the clean and build which seems to work fine. The same thing on the local doesn't work. The breaking point somewhere in the build process is the place where Project.Web gets the calls to GetXapOutputFile() to the Silverlight project (the one with xap file) and when it tries to build the ...

What do you suggest for creating data intensive web applications? Silverlight or ASP.net?

What do you suggest for creating data intensive web applications? Silverlight or ASP.net? (data intensive applications like asset management system or warehouse management system) Can you tell me your reasons ? Thank you in advance ;-) ...

Silverlight Grid

Hi Is it possible to have a countdown timer in a silverlight grid? ...

Where should the viewModel be created?

Hi, I have seen a few examples where the viewModel (in Silverlight apps) is in the UserControl.Resources XAML section of a View. I read that for using Blend, this is a good place to have it (as it gives the ability to see sample data in Blend). However, is this the best place to have the viewModel? I read that the "view has to push s...

How to load MP3 files from a FileReference in Silverlight?

How to load MP3 files from a FileReference in Silverlight? I'm looking for something like this in Silverlight ...

Silverlight3: Play files from a .m3u playlist

Hy, does anyone already figured out a way to play .m3u files with Silverlight? I didn't find a way to do so, and I don't think that it's natively supported by SL. Any ideas how to manage the playback? Thanks for your answers! ...

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 ...

Is This Normal Development Procedure?

First a little about myself. I am not an experienced software engineer, architect or developer. I have done mostly small ASP and ASP.NET projects in C# for the last 5 years. I am pretty good with HTML and JavaScript. These projects were done when I had free time from my other duties which were not related to software development. I have ...

UX: How to present a directory/file structure with videos?

What would be a good user experience to present this? I have: A folder/directory structure containing mostly media files that need to be presented in a Silverlight app. Future versions may be expanded to allow some non-media files to be presented as well. The typical use case (that I'm tailoring the solution for) is video. The videos (...

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 ...

Accordion Item not in correct Visual State

I need to use an Accordion to display some totals on a LOB application we are building. If I place the Accordion in XAML all works fine and the state of the icon (>) is correct and pointing to the right. On Mouse entering the AccordionItem we do not have a visual state change. If I dynamically add AccordionItems on a Button Click (to s...

How to make the URL in textblock be clickable?

The content of the textblock is imported from an webservice, somehow, there is URL, is it possible to make it like a link? Thanks. ...

Silverlight Automation Similar to Watin

I am considering porting a WPF application to Silverlight. However, the WPF application uses Watin to spawn IE processes and automate certain tasks. My question is if there is a way to automate tasks in Silverlight by spawning popups and performing tasks in them similar to how you would with Watin. ...

Why is text being truncated in this Silverlight TextBlock?

I have a TextBlock with wrapping enabled and while the text is wrapping, it is being wrapped in such a way that some text is truncated. The TextBlock is defined as <TextBlock x:Name="_txtLiveText" Style="{StaticResource TranslationInfoTextBlockStyle}" Text="Live text displays here" Width="Auto" TextWrapping="Wrap" Grid....

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? ...

How to display a list of items horizontally in Silverlight with a separator?

I'd like to know if there is a Silverlight control that allows me to display a list of items horizontally with a separator between each pair of items. For example, suppose this is my list of items: int[] items = new[] { 42, 43, 44, 45 }; then I want them to be rendered like this: 42 -> 43 -> 44 -> 45 This is just an example, in re...

using Silverlight in SCORM content

I'm building a LMS system using Sharepoint (WSS 3.0) with the Sharepoint Learning Kit (SLK). One of the requirements is to be able to host Silverlight content within the SCORM package. Has anyone done this before? I haven't been able to find much (anything) online that talks about how to do this. Most of the content tools that exist ...