silverlight

SL3 Shared Path Style

Hi, I have problems applying the following Style to multiple Path-Objects in XAML: <Style x:Key="cloudStyle" TargetType="Path"> <Setter Property="Data" Value="M 410.67959 194.3815 C 392.37515 ...." /> <Setter Property="StrokeMiterLimit" Value="4" /> <Setter Property="StrokeMiterLimit" Value="4" /> <Setter Property="StrokeLineJ...

Hosting a WCF service in an ASP.NET MVC app?

Howdy, I have a pretty big webapp that's being built in MVC. I'm also abstracting common code into a framework which sits in a separate project. Hopefully this framework will be used in other projects in the near future. There are a few Silverlight apps that are a part of this framework, and one of their jobs is to upload files a chu...

How do I get the Chart Series' Parent's Parent's Parent's detail?

Hi All, I am having some difficulties of getting the ancestor of a chart series on silverlight. I can get the parent, but it is a type of Primitive, and then I can get to the parent of that parent by specifying the type, however, I am not sure how many level deep can that be when it reaches to the Chart, and I would like to get to the ...

Silverlight and ASP.NET authorization

My website uses Forms authentication. I did silverlight 3 module which is designed to work in context of asp - authenticated user. Silverlight module talks with WCF hosted by the same asp.net website, but the issue is that it cannot authenticate to WCF service. I run Fiddler and I see that .ASPXAUTH cookie is not sent to WCF service. How...

Moonlight on PowerPC Mac

Silverlight stopped supporting PowerPC Macs after version 1.0. Will Moonlight 2.0 work on a PowerPC Mac? We are looking at writing the next generation of our product and we are considering Silverlight. However due to our existing customer base, we could not afford to cut off PowerPC Mac users at this time, and we'd like to avoid parall...

Possible to Create Project Choosing either Silverlight 3 or 2

On my computer according to 'Add Remove Programs' I have installed: Microsoft Silverlight Microsoft Silverlight 2 SDK Microsoft Silverlight 2 Toolkit July 2009 Microsoft Silverlight 3 SDK Microsoft Silverlight 3 Toolkit July 2009 Microsoft Silverlight 3 Tools for VS 2008 SP1-ENU When I create a Silverlight project, I am gue...

Poll mechanism in Silverlight without a DB

Hi all, I need to implement a poll mechanism (simple questions with yes/no options) in Silverlight, but I can't use any database. The client says the only available storage is xml files. Do you think this is a viable option? I'm thinking about dealing with file integrity and any concurrency issues that may arise from this. It would req...

Deserialization not working in WCF

I have a simple class, let's say "Team" and I expose a WCF service (basicHttpBinding, hosted in IIS) with a GetTeams operation which returns an array of Team. The Team class looks like [DataContract] public class Team { [DataMember] public int Id { get; set; } [DataMember] public Point Position { get; set; } [DataMe...

How do you set the size of a Silverlight OOB application window?

When ever I launch my Silverlight Out-of-Browser application the window size does not match my layout. I've seen ways to provide different size icons using the XML file for Deployment.ApplicationIdentity, but not to specify size of window. ...

How to make ChildWindow blocking

The ChildWindow is a modal window, but it does not block. Is there any way to make it blocking? I basically want a ShowDialog() method that will call ChildWindow.Show() but then not return until the user has closed the ChildWindow. I tried using Monitor.Enter() to block after ChildWindow.Show(), but the ChildWindow never rendered and the...

Deploying a XAP file into ~/ClientBin using VSeWSS

I have a SharePoint (using VSeWSS 1.3) project that creates a WSP file which installs my custom content types. One of the type also installs a custom version of DispForm.aspx which is hosting a Silverlight control, located in the ~/ClientBin as a XAP file. Is there a way in the ListDefinition.xml file to instruct VSeWSS to deploy my XAP...

StackPanel not updating

Hello, I am having an issue with a directly bound ObservableCollection not updating a StackPanel when new items are added. Any initial items show up correctly. Only items that are added later on fail to display. XAML: <ItemsControl x:Name="ImageTable" ItemsSource="{Binding Path=SystemObjectViewItems, Converter={StaticResource UIElementW...

Creating a drop shadow style in XAML

I’m struggling a little bit with some XAML syntax I hope someone can advise on. I want to create an “Effect” type style resource which contains a DropShadowEffect definition which can be reused rather than always manually setting the properties. Here’s what I have: <Style TargetType="DropShadowEffect" x:Name="DropShadowEffectStyle"> <...

Silverlight MouseLeave Issue

I'm trying to make a color picker in Silverlight similar to this one but I'm having trouble implementing the cursor in the large square area. In order to keep track of the mouse state I have an _isMouseDown variable. On the MouseLeave event _isMouseDown is set to false, so that if a user drags out of the large square area, releases, and ...

Problem calling WCF service through https

Hello, I have recently implemented SSL on a WCF service. I deployed it on a IIS server, which is on another machine of the network (my developer machine doesn't have IIS, so i can't test locally). Whenever i try to call the WCF service, i'm having the error: "CommunicationException... failed... ask for cross-domain policy... which acc...

Using Silverlight, how do I prompt the selected item's value on a SelectionChanged event?

I can do this very easily on normal Combobox as SelectedText or SelectedValue, but using Silverlight, I can't get to that option. ...

Silverlight Tree view

Hi there, I am using the tree view control in my silverlight project. I use data binding for binding my model to the tree. This works perfect. After adding some features to the tree I ran into two problems: When I change a property on my Model, the tree does not get updated, even after my onproperty changed get called and also my con...

StaticResource in Silverlight ControlTemplate?

I'm trying to use a StaticResource in a ControlTemplate for a custom object, and whenever that object is rendered, the application crashes. As you can see in the code below, I define both the template and the resource in App.XAML. I've been doing a bit of searching to see if/why this isn't allowed, but have had no luck so far. <Colo...

Using IEditableObject In Silverlight

I have a object that implements the IEditableObject interface exposed on a viewmodel bound to a Silverlight page. How/Where do I call the BeginEdit, CancelEdit and EndEdit methods? How can I constrain only objects implementing this interface to my page? I am NOT using DataGrid or DataForm controls. I am using Label, TextBox and Descr...

Retrieve Response Headers in Silverlight?

I'm issuing a HttpWebRequest in silverlight and attempting to read (amongst other things) the headers in the response. Unfortunately, while I can get the response object (HttpWebResponse) any attempt to access the Headers collection results in a "not implemented" exception. Any ideas of how to do this? I'm attempting to pull a large reco...