silverlight-3.0

How to do Paging with ItemsControl in Silverlight 3

I was wondering if the method for paging shown in this blog the only way to accomplish paging using ItemsControl in SilverLight 3? Dynamic Paging in Silverlight I want to display the following: HeaderText 1 Sub Item 1 Sub Item 2 HeaderText 2 Sub Item 3 Sub Item 4 PREVIOUS FORWARD Here is what I have so far. MainPage.xaml <Scro...

How do you set CacheMode on an element programatically?

Silverlight 3 introduced the CacheMode parameter on elements. Currently the only supported format is BitmapCache. In XAML this value can set as the following: <Image CacheMode="BitmapCache" Source="MyImage.png"></Image> I would like to do the same thing at runtime but have failed so far, neither of the following examples work Image i...

Using Webservice classes in Silverlight when adding service reference instead of web reference

Scenario: I am using Silverlight 3.0 as client for a web service. Design: The server has a class named DeviceInfoService which has the basic functionality of getting the list of devices, getting the properties of devices etc. When I open an ASP.NET project and try to add a web reference, I can find an option to add a "Web Reference"....

silverlight 3 style composition

I haven't been able to find a simple, straightforward answer regarding this scenario, so I thought I'd try here. In WPF, you can so something like this: <Style x:Key="headerBlock" TargetType="{x:Type StackPanel}"> The idea here is to avoid setting the Style property on every TextBlock inside the Stack...

How to change tab control background of header in silverlight 3 ?

Hi, I'm trying to figure out how to change the color of tab headers in TabControl. The whole tab control has another color than white and it's why it looks so ugly. Thank you ...

SL3+RIA Services: what assembly is required to use InvokeOperation<Type>?

Hello, Background: My experience in C# / Silverlight / .Net development is about 4 weeks worth. The official documentation for .Net RIA Services July 2009 Preview, on Page 66 Section 6.2.2.2 states how one would consume the result of a call made on a function marked as [ServiceOperation]. This examples specifically uses 'InvokeOperatio...

How do I temporarily disable the page links in the Silverlight 3 navigation bar?

I have a Silverlight 3 Navigation Application and I would like to temporarily disable the links to the various Silverlight pages when an item is being edited, requiring the user to explicitly cancel the edit rather than navigate away from the screen. [EDIT] How do I temporarily disable the navigation links programmatically? ...

silverlight audio monitoring

as far as i can tell the only way to play audio on silverlight 3 is using the mediaelement. I'm comparing using flash vs silverlight for a web app which will allow the user to interactively turn on/off multiple tracks from a single audio compositions. how many simultaneous sounds can silverlight play at once? Think flash has a limit of...

How to return ArrayList type from DomainService Class to CLient Side?

Hello, Background: 3-4 weeks experience in Silverlight3/C#/.Net and about 3days worth with the RIA Services concept. (most of my previous questions up to date should explain why) I am doing a test implementation of Microsoft's RIA services with Silverlight3. This is part of a proof of concept i have to do for a client. So its very basi...

Reading from ServiceReferences.ClientConfig in WCF in Silverlight 3 in a dynamically loaded .xap file

I'm using Silverlight 3 Prism (CAB) with WCF When I call a WCF service in a Prism module, I get the same error: "Could not find default endpoint element that references contract 'IMyService' in the service model client configuaration section. This might be because no configuaration file was found for your application or because no end ...

Silverlight ignores WCF path from web.config file.

I am writing a Silverlight app calling WCF service. Another solution contains following projects for Silverlight: - Web project for hosting silverlight app - Silverlight app project - Silverlight class library project with service reference to WCF When i run the Silverlight app on my locahost, the Silverlight invokes WCF using localhos...

Silverlight 3 and component library advice

Hi, I have to build a web application in a couple of weeks in your usual 3 tier, UI/Business Logic/Data Store, type way, however the customised UI really isn't achievable in anything but Silverlight or Flash (lots of custom vector drawing, fades, animation type stuff etc.). Given I'm not a Flash developer, but am an excellent C# progra...

Programmatically start an asp.net integrated webserver with visual studio files

Hello. I'm not sure what keywords to google for, so i'm gonna ask SO. I have an asp.net website which host a database, wcf dll and silverlight application. I would like to create an .exe file to automatically run an integrated webserver with the application root being the project folder of where my asp.net files are. Basically what I ...

Preserving state in Silverlight 3

Hi, I'm developing a Silverlight 3 Application which I want to connect to a webservice with a provided .dll or with SOAP. But the .dll is not suited for Silverlight so I can not do that. And I can't access the SOAP service because of cross-domain issues (I do not host it so a clientpolicy xml will not do). So my solution is the include...

How to play MP3 streams which are received by Silverlight from WCF?

How to play MP3 streams in silverlight 3? (streams which are received by Silverlight from WCF) ...

Problems with tabcontrol (Silverlight 3) with MediaElement

Hello, I have tab control. Every tab item contains MediaElement. User can download media into them independently. I notice that every time when I toggle between tabs the according mediaelement fires MediaOpen as if there is some initialization every time. It's not so good and I don't know why is it and what should be done to avoid such b...

Silverlight Grid

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

Silverlight Test without opening browser

Guys, Is there any way to run Silverlight tests without opening the browser? It takes some time to open the browser. if you are doing TDD, you may not like it. ...

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