silverlight

recommend a good tutorial about Silverlight animation

Hello everyone, Could anyone recommend me a good tutorial about Silverlight animation for a beginner, and I am especially interested in how to read the animation code in XAML (I always feel magic code) and develop my own animation. If the tutorial covers any tools which could facilitate animation code rede and animation development, it ...

Silverlight 3 released - Has the time come to take Silverlight seriously?

As an ASP.NET developer, I've been eyeing Silverlight from a distance for a while now. But I've been burned by jumping on the Microsoft bandwagon too early in the past when their projects get radically overhauled or binned. I've been reading some good reviews about Silverlight 3.0 recently. So have we reached the point where, as a mai...

Silverlight user authentication

I am currently developing a Silverlight 3 app that needs some sort of user authentication, because the data pulled from a WCF service is user specific. Target audience is the regular Internet - so there is no AD to authenticate against. Here are some of the questions I have concerning that situation: Is there a framework or other mech...

What are the Silverlight 3 alternatives to DynamicResource and Element-based Brushes?

I need to have a custom UI element that can be changed, such as the colour and text used in the application but as a resource - in WPF I can use a DynamicResource to assign brushes, strings etc, however I need to implement this in Silverlight 3 - how can I do this as a StaticResource will not do, and as another question I have a resource...

Silverlight file path separator issue

Hello everyone, I find when reading from a local file from Silverlight, we have to use special path separator "/" other than normal path separator "\" or else Silverlight can not get related local file, for example we need to write as c:/test/abc.wmv, other than write as c:\test\abc.wmv. Two more questions, Any simple solution to use...

silverlight wrappanel

_http://www.mscui.net/PatientJourneyDemonstrator/PrimaryCare.htm I want to create/design the similar to above site/url using silverlight. For this I have created separate user controls(Xaml files). Please advice me the steps/way to proceed in silveright. I am using silverlight versin 2. I am thinking to use Wrappanel to adjust all the...

Silverlight 2.0 binding to images vs. Silverlight 3.0

I have a Silverlight 2.0 application which binds a listbox to a collection of classes that contain a BitMap property (which are used for navigation). I've both included the images in the XAP as content and created the BitMap manually and set it as the controls source and I have also embedded the images as resources in the DLL and got t...

Silverlight And Prism - Lazy loading a dll outside a xap file?

In the modularity quick start (http://msdn.microsoft.com/en-us/library/dd490828.aspx) there is enough details on delay loading a type from an assembly in a xap file. Is there any way an assembly can be delay loaded using Prism for Silverlight, if it is not embedded in the xap? ...

Exchanging data between xaml and aspx

Hi, I have a solution with MVC web application, WCF web service and Silverlight. MVC starts Silverlight and Silverlight gets the parameters using web service. Now I have to pass a variable from Silverlight to MVC (not with get/post). How can I do that? Thanks ...

Create Silverlight DatePicker control programmatically

I am trying to add a DatePicker control to my page programmatically, but intellisense is not picking up the DatePicker type as I would expect. MSDN shows this control as being part of System.Windows.Controls I have referenced this assembly in my project, and in my usings statement, but still VS cannot recognise the DatePicker type. ...

Right click in Silverlight 3 out of browser

In Silverlight 2 it was possible to use the browser DOM to get right click events - of course that's not possible for a Silverlight 3 OOB app. Is there any workaround? ...

How to get a silverlight dependency property when not on the UI thread?

I have essentially the same problem discussed here: http://khason.net/blog/dependency-property-getters-and-setters-in-multithreaded-environment/ public static readonly DependencyProperty MyPropertyProperty = DependencyProperty.RegisterAttached("MyProperty", typeof(bool), typeof(MyObject), new PropertyMetadata(new Propert...

Silverlight Image Loading

I'm a beginner just beginning to work with Silverlight with a very basic question. I want to display a .png image. I have already done it in the page.xaml file but I would like to do it in code (C#) so that I can add and remove images while my program is running. I have seen some code in which you add an image to the Children of a Canvas...

Silverlight application vs class library projects

I'm getting started with Silverlight. When creating a new solution I have the option of creating a Silverlight Application or Silverlight Class Library. The Application option sets everything up for me but class library is quite sparse. I'm trying to work out which one do I start with? Particularly I'm uncertain about when I would use S...

Setting the selected font colour to be different to unselected font colour in listbox control

I've found that the font colour comes from the content (ie outside of the controltemplate) of a listbox or combobox. I'd like to have black text on white background when the items are unselected, and when selected would like black background with white text. unfortunately I've not been able to figure out how to change the text colour. I...

How to dynamically insert rows in Silverlight 3 datagrid with different header/column layout?

Say I have the DataGrid control from Silverlight 3 and I want to dynamically create some free space between two rows to show more details. How can I do that? Header1 | Header2 | Header3 | Header4 ------------------------------------- Cell1 Cell2 Cell3 Cell4 Cell5 Cell6 Cell7 Cell8 Cell9 Cell10 Cell11 ...

Has font rendering improved in Silverlight 3?

I have been reluctant to spend much time learning Silverlight due to what I think is one of its main shortcomings: font rendering. Fonts look absolutely horrible especially at small font sizes and I think it makes it completely useless for any serious (business) application. I have noticed developers tend to cover this up by using light ...

InvalidCultureName issue with Silverlight

I'm working on a silverlight application where I'm checking the url to see if the user is trying to access the "Spanish" version. My methods work fine on Windows 7 and Windows Vista but I'm getting a crash throwing an Argument_InvalidCultureName exception when a user of Windows XP tries to load the application. Can someone look at the ...

How to send UDP multicast packets through Silverlight?

Hi, I'm trying to find a way to send a udp broadcast packets through a silverlight application. Most of the research i've done lists that this is not possible through silverlight due to the support for sockets being limited to tcp only. But is there some other way to send a broadcast packet for example through javascript or something ...

Right click in Silverlight 3 *in* browser

I'm surprised to notice that my right click code no longer works in-browser for Silverlight 3. I think the problem could be that in SL2 I was using the asp Silverlight control and setting the property Windowless=true. That control was removed in SL3 and now I'm using an object tag to display Silverlight content. How can I get this to ...