silverlight

Multi Silverlight databinding

Does anyone know if its possible to do a binding and (if not how to achieve the same effect) on the same property using more than one binding in sort of a template ie A textblock that has Text bound in the expression "{Binding Path=Contact.Title} {Binding Path=Contact.Firstname} {Binding Path=Contact.Surname}" all in one text propert...

Silverlight and HTML DOM

Ok, so this question probably isn't Silverlight specific. I have a silverlight 2 page that is stretched, it always fills the browser window. I am overlaying a DIV onto Silverlight, which is working great. My problem is, the div tag causes empty space below my control, even though the content itself is overlaying the Silverlight control...

Binding security token to particular client machine

There are some applications in Silverlight 3 and WPF which communicate with data web services (based on WCF). It is necessary to protect data web services. Only known users should have access to the data. Solution will work in local network without access from outside. Client connects first to authentication web service (providing user...

Silverlight Toolkit Charting Control - Show "Column" Colours

In the silverlight toolkit chart control, the legend on the X Axis can show an indeterminate amount of points. E.g. 1,2,3,4,5. Would it be possible to colour the virtual columns that this creates? I.e. in the space where legend mark 2 is shown, the space above to the top of the control is shaded to a different colour. This will make i...

WPF/Silverlight - Prism - Resources for beginners

Official Websites Composite Application Guidance for WPF and Silverlight patterns & practices: Composite WPF and Silverlight Articles Composite Web Apps With Prism Podcasts PRISM for Silverlight - Connected Show Videocasts SlickThought.Net - Jeff Brand dnrTV Brian Noyes on Prism Brian Noyes on Prism Events and Commands ...

Silverlight 2 How to know all ASYNC WCF calls has been completed

Tools : SilverLight 2, C# 3.5, VS2008 and WCF Async Programming In my SL2 application, I am making 3 async wcf calls as follows - void HomeScreen() { //Async WCF Calls DataService.GetPersonInfo(sUser); DataService.GetSalaryInfo(sUser); DataService.GetDepartmentInfo(sUser); //Where to put this code? //Page.Redirect("MainScreen"); } ...

Does Silverlight restrict .root TLDs?

I've been working on a Silverlight app that loads XML. Internally, in our QA environment, the URL for an XML response is servername.stage.root/script/var1=1/var2=abc/etc i kept getting unexplained Security Errors when it was time to load an XML from this URL. I tried a variety of tests and finally determined that the error only occurs w...

Enabling direct content creation in XAML on a dependancy object

I have a class CollectionOfThings. As its name suggests its a simple collection of instances of the Thing class. Thing class has a public default constructor and two simple public get, set properties ID and DisplayName, both are string. CollectionOfThing also has public default constructor. In XAML I would like to use markup like thi...

Silverlight 2 Debugging Exceptions

When I get an exception in code called by Silverlight whilst in debug mode I cannot F5 or F10 past the expection. It's like VS (2008) gets stuck on the exception and can't get past it. I have to close the application and restart. I am using Vs2008 Team Edition for Software Developers. Anyone else experienced this? Know any workarounds ...

How to create a repeating background with xaml elements in silverlight?

I want to create an area in my application that looks draggable. Usually, you see this done with a background of small dots or squares, or sometimes lines. I'm using Silverlight and I want to simply create a background that is a set of repeating small rectangles. I honestly cannot figure out how to generate a background with xaml. I'...

Making Silverlight App plugin capable

Hi, I want to know about general methods to dynamically load content into your silverlight application. More specifically, I want to create something like a widget-based application, where all GUI objects are small independent widgets. I want to provide a static chrome, like a frame, hosting the actual widget, that is loaded from an ex...

.NET RIA Services with MVC Style Repositories?

I have a Solution with several projects in it, including two asp.net mvc projects that share a Repositories and Models that live in a external assembly (also in the same solution). Essentially... Core/ -Repositories -Models Domestic.Web/ -Basic MVC Site, references the core project International.Web/ -Basic MVC Site, references the ...

How can I pass a mouse click to a parent control?

In a Silverlight 2 app, I am using Rectangles on a Canvas to draw a representation of data. I would like to have mouse clicks on the Rectangles be passed on to the control that owns the Canvas. I would also like to be able to show a tooltip with a summary of the data when the mouse is over a Rectangle. So far I've only been able to ac...

How do you insert markers into a Silverlight LIVE video stream?

A client has a live video stream and a Silverlight player, we would like to add closed captions to the player. However, due to lag we need a way of synchronising the video and the captions. TimelineMarkers (http://msdn.microsoft.com/en-us/library/system.windows.media.timelinemarker(VS.95).aspx) seems like the way to archive this, how...

Silverlight 3 BETA DataGrid grouping

NB this was for the silverlight 3 beta, RTM seems to handle grouping entirely differently. I've a grid that is working fine, which I'm using the GroupDescriptions property like so: <data:DataGrid.GroupDescriptions> <cm:PropertyGroupDescription PropertyName="ClientName" /> </data:DataGrid.GroupDescriptions> This works brilliantly...

using MediaElement play video issue

Hello everyone, I am using the popular sl2videoplayer from codeplex to play video, and everything is fine when I play remote video on an IIS web server. Sl2videoplayer could be found here, http://www.codeplex.com/sl2videoplayer But when I open the default.html locally from disk (double click default.html to open in IE), there is error ...

Issues or reasons against updating Silverlight 2 project in development to Silverlight 3?

I currently have a recently started project in development with a 2010 target date developed primarily in Silverlight 2, making use of the March Silverlight 2 Toolkit. Now that Silverlight 3 is gold, is there any reason to not migrate the project to Silverlight 3 in order to be able to take advantage of added features and improved perfo...

How best to resize XAML with dynamic text

In a Silverlight interface I'm working on I have the need to resize a stack panel when its container resizes, to prevent the text in it from being truncated. The text in question is added at runtime from language files, depending on the language the user has selected. As the lengths of strings can vary considerably between languages I'm ...

Can the new client networking stack in Silverlight 3 directly connect to Azure Storage or Mesh?

From Tim Heuer: In Silverlight 3 we’ve introduced the Client HTTP stack as an option as well. You must opt-in to use the client HTTP handling. This gives you the ability to go more than just GET/POST (i.e., more REST-ful verbs), using response status codes/headers, etc. You can opt-in to use the client HTTP stack on all requests, req...

Can the DataTemplate of a listbox in silverlight be a collection of lists

Hi I have a an array of observable collections and I want to display all these collections in a single list box. The data in each of these collections are of the same type and they have been separated on the basis of a particular category. So my question is, is it possible for the DataTemplate of a listbox to contain a Listbox? ...