silverlight

Listbox item foreground problem

I am facing a problem with one of my XBAP (WPF Browser application) projects: Here I have two list boxes: One a simple list containing text content Second one containing an expander as each item: Now when I click on the item in the first listbox (on the left side), the foreground changes to white and then changes back to black if ...

Silverlight: "The name already exists in the tree"

Hi, this is a problem that regularly arises when I write Silverlight XAML. In this case, I've made a usercontrol VerticalTabStop (code attached) that has a ToolTip attached. I instanciate a couple of my usercontrols, and then I get the debugging window and the following error: Line:52 Error: Unhandled Error in Silverlight 2 Application ...

XAML Vector to Illustrator or similar

Hi, I can easily enough go from Adobe Illustrator and make a XAML file via the XPS Virtual Printer, but is there any way to import Vector graphics defined in XAML into Adobe Illustrator to continue working on it? Cheers Nik ...

Silverlight - Setting DataContext in XAML rather than in constructor?

How can I set the DataContext on my Grid in XAML, instead of in the constructor? Here is how I do it in the constructor (LayoutRoot is the XAML Grid defined in the XAML): this.LayoutRoot.DataContext = this.HPVM; I would prefer to do it right in the XAML, but I do not know how to reference the HPVM object in XAML. HPVM is a public pr...

Tab decoration in Silverlight

I have some tabs I working with in Silverlight because of issues I'm having with JQuery UI in Internet Explorer. I want to style the tabs in sliverlight to look like the ones from JQuery UI but can only seem to get the to take some washed out colors. Dose anyone know of any links that describe how to do this? Is there a way to set an im...

How to implement live video broadcasting in C#?

Hi, I want to plug a live video broadcasting facility to a website. I'm planning to use silverlight and C# but I'm very newbie in this topic. What is the best way to do this? Thanks in advance. Update: I have a camera. I want it to capture it and show on my website. Live. But I have no idea about what I must do inside. Tell me every...

Silverlight Video - playing Virtual Video Clips

I have a requirement to play only a portion of a larger video file in Silverlight and I am wondering if this is possible in a dynamic way. We want to avoid having to cut up a larger video into smaller clips that will appear at different locations on the site. thanks Michael ...

Markup Extensions in WPF/Silverlight

Has anyone ever created a custom markup extension in WPF or Silverlight? When would you ever want or need to do this? Any tips or sources on how to do it? ...

How easy it really is to implement drag&drop in silverlight?

I am new to silverlight - I've seen the tutorials and all, what I am looking for are high-level steps required to implement drag&drop and maybe a bit of (pseudo)code just to get an idea. Any help appreciated! ...

Silverlight Webcam

Is it possible to access a webcam in Silverlight From what I've read it's not possible in Silverlight 1.0 but what about 2.0... 3.0 ... 4.0? ...

Can I print content in Silverlight

Flash provides a simple way to print the contents. Is there a way to do the same in silverlight also ...

Silverlight - relative DataContext in XAML?

In Silverlight XAML, I think I've just realized that a DataContext declaration on a nested container is relative to the parent container's DataContext. Can you all please confirm. If so, then let me ask this: On a child XAML container element (i.e. StackPanel) how would you would jump out of that relative DataContext tree, and start at ...

Swap Controls in Silverlight

I have a Grid control with 6 rows and 6 columns. On the top row, I have a dropdown that can have two states. (New or Used) When I'm in the New state, I have two controls. Yellow Control in Row 3, Col 1 and Red Control in Row 5, Col 1 When I'm in the Used State, I want to swap the locations of the controls so that Red Control occupie...

Silverlight MediaElement Cloud

Doe anybody know where i can get a sample silvelight mediaelement cloud similar to mojaveexperiment.com? ...

Silverlight ReaderWriterLock Implementation Good/Bad?

Hi, I have an adopted implementation of a simple (no upgrades or timeouts) ReaderWriterLock for Silverlight, I was wondering anyone with the right expertise can validate if it is good or bad by design. To me it looks pretty alright, it works as advertised, but I have limited experience with multi-threading code as such. public sealed c...

seating plan

I have to build a theatre seating plan. Admin should be given an option to right click, add row, delete row, add numbering to seats, add seat to a row or delete seat from a rom (similar to excel rows and columns and cells). Admin can also click on each row to put specific price for that seat. What is the best approach to get it done? ...

Silverlight layout Best Practices

I'm writing a fairly big interface using Silverlight. As I progress, the xaml file is getting fairly big and is becoming proportionally uglier. Questions Are there any resources out there to make the xaml more readable? For example, how would I display the order of attributes (e.g. height and Width first) so that it looks the most ti...

Silverlight Deployment

I have a Silverlight 2.0 site that works in dev. I have Copy Local set to true for System.Web.Silverlight (not sure if that is necessary). In production the web page loads, and the JS is sent to the client, but the movie is not loaded. Does the server need anything special installed? (it has 3.5 SP1) ...

Prism v2: seeking clarification on why modules need to "register view types with the shell"

I'm reading through the Prism v2 guidelines in which they state: During initialization, modules use the RegionManager to locate regions in the shell and add one or more views to those regions or register one or more view types to be created within those regions I understand that views are added in the bootstrapper e.g. in...

Problem with WCF-Service between Silverlight and Azure Cloud WebRole.

I want to use a Silverlight application in a cloud on Azure. The communication between the Silverlight application and the WebRole is a WCF-Service with Basic-HTTP-Binding. My problem is, that the communication doesn't work. I think the endpoint-address is not correct, but I'm not sure. Can someone help me? ...