silverlight

Property Value Inheritance

Hello, After much searching on MSDN and other sources I have basically found that "some" Dependancy Properties do indeed support property value inheritance similar to WPF. However, as far as I can tell, there is no definitive list of which properties do, and which do not. I know Font properties, for example, do; yet HorizontalContentAli...

Multi-tenancy with SQL/WCF/Silverlight

We're building a Silverlight application which will be offered as SaaS. The end product is a Silverlight client that connects to a WCF service. As the number of clients is potentially large, updating needs to be easy, preferably so that all instances can be updated in one go. Not having implemented multi tenancy before, I'm looking for ...

New Website Project Sliverlight / Php

Hi, Very recently i have been given a facebook like project to develop for a client of mine. Most of the time when i comes to web development i use php since the solution PHP, apache, MySql which are all freely availble solutions, i have been thinking about using sliverlight to develop th web application, and i would like to hear some p...

Accessing SharePoint Web Services over Silverlight

Hello, I have a problem to access SharePoint Webservice over Silverlight. An error occurred while trying to make a request to URI 'http://sample:8000/_vti_bin/Authentication.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is ...

What is so evil about a Flash based website?

I have the feeling that Flash-based ( or Silverlight-based) websites are generally frowned upon, except when you are creating games or multimedia-content rich applications. Why this is so? ...

Button Rendering Incorrectly after Rotation Transformation within a Silverlight Control

It looks like the width of a child silverlight control is always clipped by the width of the container. Even if the child control is rotated. This first "chunk" of XAML will render a Button that is too large for a stack panel and is clipped, this makes sense. <StackPanel Width="20"> <Button Width="100" Content="Foo" /> </StackPane...

How to serialize a derived class in Silverlight

I created a custom control in XAML, and added some custom properties as well. Now, I want to serialize it to JSON if possible. Here is (essentially) what I have: public partial class MyCustomClass : UserControl { public Dictionary<char, int[]> ValueMap; public int Value { get; set; } } And in the code that handles serializatio...

What is the purpose of a Service Locator in a Silverlight MVVM app?

I am trying to put all the pieces together for my MVVM Silverlight application and I see some blogs touch on Service Locators. What is a service locator and when should it be used? ...

How can I avoid the bluish border when clicking a HyperlinkButton in Silverlight?

I have a Silverlight menu for my application with an image as the background. I use some empty HyperlinkButton at a specific position and size to simulate a real button on the image (think as a HTML image-map): <HyperlinkButton x:Name="Portfolio" Width="86" Height="40" Canvas.Top="50" NavigateUri="/portfolio"/> <HyperlinkButton x:Name="...

Can I use a custom control in a stand-alone XAML file?

Quick intro: I have some Silverlight 1 content that people have been editing and putting into HTML pages. Unfortunately, this means a lot of repetative creation of Storyboards, etc. We can use Silverlight 2, but not everyone here is familiar with C#/has Visual Studio. What I would like to do is create some custom controls in C#, output t...

Silverlight: Getting image (from OpenFileDialog) width/height.

Hi, there is my first time on Stack Overflow, thanks in advance for any help I get. I've been using the BitmapImage.DownloadProgress event to wait until the image is loaded when creating a bitmap from a URI. That was I can use an event handler to check the Image.ActualWidth/ActualHeight after the download is complete. This works fine. ...

How do I Monitor changes in an ItemsControl using Silverlight?

I have an ItemsControl bound to an ObservableCollection. When the observable collection changes, I have an event handler that looks at the children of the ItemsControl. Unfortunately, the ItemsControl hasn't yet added a new item at that time (which is understandable). How can I know when an ItemsControl has finished adding new child cont...

How is the Parent property of a FrameworkElement set in Silverlight?

I have written a custom Silverlight control based on Control. I have two DependencyProperties called Top and Bottom which both hold child controls for a specific layout display. I then use a ControlTemplate to arrange these two controls into a grid, placing one on the 0 row and the other on the 1 row. The problem I have is that I cann...

In terms of performance, which is better Flex or Silverlight?

In general, which performs better? How are they like when processing vector graphics? ...

Should the Silverlight root tag be UserControl or Canvas?

I'm reading Silverlight 2 Unleashed, published in October 2008 and it has examples in it with a root canvas tag: <Canvas xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="Red" Width="500" Height="300"> <Ellipse Width="400"... However when I create a...

How to open a zip file in a CD from silverlight control in Silverlight 2.0 Application?

We have a silverlight application from which we are trying to open a zip file which is placed in a CD.Can any one tell how to open .zip files from local path of CD from SilverLight control. Thanks & regards, Sheetal ...

Silverlight 2 ListBox with a custom panel won't respect size from ArrangeOverride

If I use a custom panel to layout my ListBoxItems, the ListBox won't respect their combined Height (it does respect their combined Width though) - even when my ArrangeOverride returns a size that surrounds all the items. Setting the ListBox's Height explicitly makes everything work, but I want it to work that out for itself! Has anyo...

Looking for a silverlight XPS viewer control

Hi, I am trying to integrate silverlight into my ASP.NET app, and want to let my users view any arbitrary XPS document in my wep app. I am looking for any robust Silverlight XPS viewer control for this purpose. I have read some blogs on the "simple xps" viewer and all that, but the best one i have seen so far uses textblock to render t...

Convert a silverlight application to video format

Hello, I'm planning to make an animation with Silverlight, i want to export the animation to a video format, to be able to share it on video sharing website. How can i do this ? ...

Is it possible to access a Silverlight DataGrid Column by name rather than by column index ?

Does anyone know if it's possible to access a DataGrid column by using it's x:name (as defined in the xaml) from within the code behind ? I know I can use the following code : myDataGridList.Columns[0].Header = "Some Data"; ..but I would prefer to use something like this if possible: myDataGridList.Columns["ColumnName"].Header = "So...