silverlight

Detect Silverlight server-side

I have a fairly complex Silverlight banner, with interstitials, hovers, active areas, etc. This is specced to work in Silverlight 1/2. As I am an web standards fan, I'd like to accommodate users who do not have Silverlight and switch to an equivelant JavaScript-driven version of each banner if needed. For expediency, I'd love to be abl...

Silverlight 3 (C#) VS Flash 10 ( AS 3)

Hello , i have few questions about FLASH 10 and Silverlight and what should i choose 1) which is lighter ? ( CPU consumption , loading times , speed of executing things etc .. ) 2) which has richer capabilities ( API-s , libraries etc.. ) 3) faster for developing ? 4) what about media handling ( audio/video streaming ) ? 5) d...

Encoding in Streamreader in my silverlight application

Having trouble geting the encoding right in my silverlight application. I need support for western europe letters like æ,ø,å,â and so(Latin1??). But I can't get it right. What should be instead of SOMEENCODINGHERE? did try Encoding enc = Encoding.GetEncoding("Latin1"); but no names I used as param was recognized =( . If I use Encoding.U...

ControlTemplate.Triggers WPF equivalent in Silverlight 3

Hi, I have this controltempalte + trigger stuff in my WPF application. <ControlTemplate TargetType="me:MyControl" x:Key="fade"> <ContentPresenter - other stuff /> <ControlTemplate.Triggers> <Trigger Property="IsTransitioned" Value="True"> <Trigger.EnterActions> <BeginStoryboard> ...

Silverlight deep zoom composing issue

Hello everyone, Deep zoom composer itself is very nice tool. I am wondering if there are any automatic ways to compose? For example, I have 100 images, and I want to compose automatically as 10 * 10 deep zoom effect. I am implementing a background workflow and automatically composing deep zoom and publish. The Output Type I prefer is "I...

Powerscript manipulating IE on Windows Server 2008

I'm trying to run my Silverlight tests via a command line (eventually MSBuild) working from this example. It all works fine on my XP Box but on Build Machine (Windows Server 2008) the IE window opens, then a second window opens with the Silverlight page in it. That page then shows the "Download Silverlight" picture and link. If I copy t...

Silverlight 3 user control data Binding in xaml

I’m trying to achieve something that is conceptually quite simple but can’t seem to get it working. I have a class called c1 it has 2 dependency properties in it an integer I and a string S. It implements INotifiyPropertyChanged. public class c1: INotifyPropertyChanged { private int i; public int I { get { return i; } set { i ...

"Out of browser" web application running at Start-Up?

Hello, I've become familiar with the new concept of "out of browser" web applications, supported in the recent Silverlight, JavaFX, Adobe AIR etc. Listening recently to a podcast on the subject by Scott Hanselman, I've become aware that one of the purposes behind these new architectures is to allow for "desktop-application-feel". Also,...

Is Silverlight a viable choice over raw ASP.NET?

I'm in the process of designing a solution for the company I work at (but have just resigned from) which has a very complex application process in it. The process is close to 10 steps (including T&C's and preview) and also has some very tricky UI-level business rules (mostly driven by a legacy tie-in system). Essentially the validation ...

C# Silverlight WebClient get Content-Type of Response?

Is there a way to get the Content-Type of the response or conversely set the Content-Type of an outgoing request in Silverlight using WebClient? Edit I need to make http requests and be able to show progress for them. I want to package the machinery for making the requests into a generic module and use it everywhere in my code. This I ...

How to get Stretch.Uniform scale in Silvlerlight?

Is it possible to get the scale used to stretch an image in Silverlight? I have a image that i apply stretch.uniform on. When the browser window re-sizes, the image re-sizes as well. If it is possible to get the scale, other components can be transformed by this scale. Does anyone know how to get this? ...

Silverlight XamlWriter

I see that the .Net XamlWriter is not available in Silverlight. Well - I need one anyway, so I assume there is a solution to this..? I have some UIElement objects (Path, Ellipse, Rectangle, ..), and I want to store their Xaml definition such that I can load these later using XamlWriter.Load(). Any ideas on how to do this? Any 3rdParty ...

MVVM (ICommand) in Silverlight

Hello! Please, don't judge strictly if this question was discussed previously or indirectly answered in huge nearby prism and mvvm blogs. In WPF implementation of RelayCommand or DelegateCommand classes there is a such eventhandler /// <summary> /// Occurs whenever the state of the application changes such that the result of ...

WPF vs Silverlight

Possible Duplicate: WPF vs Silverlight. What are the key differences with the latest versions? We are looking at the option of using silverlight so that our software can run on a kiosk and also online but isn't there still quite a bit of functionality that WPF has and silverlight doesn't? Thanks ...

WCF object parameter loses values

I'm passing an object to a WCF service and wasn't getting anything back. I checked the variable as it gets passed to the method that actually does the work and noticed that none of the values are set on the object at that point. Here's the object: [DataContract] public class Section { [DataMember] public long SectionID { get;...

Silverlight: Problem using CellEditingTemplate

Hello Silverlight gurus, I am experiencing a problem with the DataGrid where my data-bound object's properties are not being updated when using the CellTemplate/CellEditingTemplate: <data:DataGridTemplateColumn Header="Text"> <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Te...

How to force ActualWidth and ActualHeight to update (silverlight)

I a grid on my silverlight control, I am programatically adding a canvas, and in the canvas I am loading and displaying Image. I'm also adding a rotation to the canvas. The problem is that by default the CenterX and CenterY of the rotation is the top left of the canvas. What I want is the rotation to happen around the centre of the ca...

Silverlight 3 RIA services and properties being "flattened" ?

I have a model that looks roughly like this: private bool IsProduct {get; set;} private decimal ProductPrice {get; set;} private decimal TimedRate {get; set;} public decimal SingularAmount { get { if (this.IsProduct) { return ProductPrice; } else { return T...

I set UserName and Password in ClientCredentials, but the login window still pops up. Why?

I have a WCF service which is set up to use basic authentication over https like this: <basicHttpBinding> <binding name="secureTransport"> <security mode ="Transport"> <transport clientCredentialType="Basic"/> </security> </binding> </basicHttpBinding> I have also specified a custom username and passwor...

scanning through an asp.net page

can you scan directly from an asp.net page or even an embedded silverlight object? thanks! ...