silverlight

Font baseline in Silverlight v3

How do I get the baseline of a font in Silverlight v3. I need to be able to do some simple font metrics so that I can reproduce some online render using an external markup system and make the output looks the same. Silverlight renders fonts from top,left but the external system uses font baseline. ...

What is major Difference between Adobe Flex and Microsoft Silverlight?

I want to develop a web Application to manage school administration. But I am not clear, which technology should I use to create Rich Internet Application. At present, develeopment company is going with ASP.net tools and say this is a web app. However, there is page refresh on every click. Which I don't like. Please suggest, where to p...

secondary y axis on WPF toolkit chart

I want to plot two line series in a WPF toolkit chart. (http://wpf.codeplex.com/) Can I set Y-axis of one data series as a secondary y-axis? ...

What is Silverlight? (In one sentence, in an interview)

Consider you are in an interview for a .NET/C# job, and are asked: What is Silverlight, in one sentence? EDIT: OK, some took it the funny way:-) I have accepted one of the more serious approaches though. However, thanks to all posters. ...

One Common event for all controls in Silverlight

I have a couple of textblock controls and all of them are calling a single event. But i have to wire all of them invidividually using TextBlock1.MouseMove += new MouseEventHandler(TextBlock_MouseMove); TextBlock2.MouseMove += new MouseEventHandler(TextBlock_MouseMove); TextBlock3.MouseMove += new MouseEventHandler(TextBlock_Mous...

Mouse events not firing when databinding to a Silverlight ContentControl

I am in the process of taking a Silverlight 4 UserControl containing a canvas which has a number of FrameworkElements on it and converting this to use databinding. The XAML for my original canvas was: <Canvas x:Name="panelDisplay" > <Rectangle Width="50" Height="50" MouseLeftButtonDown="Element_MouseLeftButtonDown" Stroke="Aqua" St...

Auto resize silverlight 3 appilcations

I've been trying to get a silverlight 3 application to automatically resize when rows are added to datagrids. I've tried this example but I just get a System.ExecutionEngineException with a null inner exeception. I think this is aimed at silverlight 2 only. Can anyone tell me how to do this in silverlight 3? Any help on this would be m...

Entity Framework with RIA services, Silverlight - tradeoff of decoupling versus rapid development

I've been playing around lately with Entity Framework, WCF RIA Services, and Silverlight 4. I'm impressed by how rapidly you can develop an application with these tools, and you get a lot "for free", such as the Silverlight UI automatically knowing about certain validations that are included as DataAnnotations on the EF model. However,...

Do you use any out-of-browser Silverlight application?

I know a lot of Adobe Flex out-of-browser applications, almost all of them being Twitter clients :) But I haven't yet seen even one out-of-browser Silverlight application yet. Do you use any? ...

Silverlight audio components

Do you know any good commertial or free audio / sound components that can be used in Silverlight (better on the client)? Desired features: visualizing (waveform, peakform etc., zoom, editing volume, pan, start and end markers etc.) editing (channels: volume, pan, mute, fading, etc., merge, cut, copy, paste, etc., effects) mixing di...

Global application hook for mouse events in Silverlight

Is there any way to register a global event handler for catching mouse events in a Silverlight application? I'd like to avoid subscribing to the mouse event handlers of each FrameworkElement and find a more elegant solution (bubbled events). Thanks ...

Shared classes are build under VS2008 only but not under MSBuild.

We share our classes between silverlight 3.0 client and server as is it described here. Everything works fine under Visual Studio 2008 only. Using msbuild with following command line parameters: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe FoobarApplication.sln /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU" we get fo...

Web Standards alternatives to Flex/Silverlight (I mean serious alternatives, not just JS framewoks)

Is there a set of open standards technologies that I can use to achieve the same way of development as in Flex and Sivlerlight? I am talking about componentization, separation of concerns, rich graphics, states and effects . Please point out some tutorials and other resources if possible. P.S. I KNOW that this is technically possible, s...

Connecting to an MS SQL Server from Silverlight?

Normally, I would use a PHP webservice to do this, but since the front-end is hosted on a linux box, I need another way to do this (so I don't have to go through the trouble of installing FreeTDS, etc. I will if I have to). Is there a better way to do this? I'm not a web guy, but I'm trying my best. ...

Where to place ClientAccessPolicy.xml for Local WCF Service?

I'm trying to create a basic WCF Service and Silverlight client. I've followed the following tutorial: http://channel9.msdn.com/shows/Endpoint/Endpoint-Screencasts-Creating-Your-First-WCF-Client/ Since Silverlight 4 was incompatible with the WSHttpBinding, I changed it to BasicHttpBinding. Unfortunately I keep getting this error now: ...

can i use a generic list in a WCF called from silverlight?

Hi, when i return a generic List of my custom object in a wcf service, silverlight gives me this error when i update my service reference (and the reference.cs file is completely blank) ugly ones like this: Warning 18 Custom tool warning: Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:bi...

Best resources to learn WCF RIA Services

The question title says it all, really. What books, videos, articles are you looking at to learn how to use the newly released WCF RIA Services for Silverlight? Thanks! EDIT: I will continue to update this list with community answers. Please let me know if you've found any useful material about WCF RIA Services. Starting Point WCF R...

How do you customize columns in silverlight 4 data binding

This is a very basic question. I have a grid, whose data context is bound to a entity framework service. I simply bound the context to service and I can see the data that is getting bound properly. Now, I want to change couple of coulmns to special controls. Like one column has true or false value and that column I want to display a radi...

In Silverlight 3 how can I get the call to HtmlPage.Plugin.SetStyleAttribute() call to call other code after the resize?

I'm trying to take a snapshot of my Silverlight control using WriteableBitmap and it works fine, however, it only takes a snapshot of what is showing. I'm trying to resize the Silverlight control so it will show everything and then take a screenshot, however, the code doesn't resize the control until after the code after the call all ru...

Scrollbar Size in ScrollViewer

How can I programatically determine the width or height of a Scrollbar in the ScrollViewer? Not the current size based on the current state of the ScrollViewer (since I can simply test the visibility of the scrollbar and calculate against the ViewerPortWidth/Height and the ScrollViewer ActualWidth/Height). I need to know what size th...