silverlight

Silverlight application requesting a file from a WCF service

I have a Silverlight (v3) application that is communicating to a WCF service on my server. One of the things the Silverlight application does is request a dynamically generated data file - this data file is created by the service and needs to (ultimately) be saved on the local user's machine via the SaveFileDialog. My question is, what...

Loading a Silverlight library in an ASP.NET MVC Web Application for reflection?

Hey, This is a pretty specific question, but I need to load a Silverlight application library into my ASP.NET MVC Web Application to reflect over the types and build a list for the user to select from. The purpose of the application is to let users upload their custom-built libraries and test it in a "sandboxed" environment. Anyway, af...

How to modify Silverlight template at runtime?

I have a custom control containing a path that has a templated tooltip. I want to be able to get a reference to a grid in the template at runtime so that I can modify it's children depending on use. I thought I could use GetTemplateChild to get a reference to the grid in the template from within the OnApplyTemplate method of the contro...

Silverlight, custom object for shapes

Hello, I am studding Silverlight. I have an application where I create Polygons in UserControl_Loaded method. During creation stage I add MouseLeftButtonUp event handler like this: polygon.MouseLeftButtonUp += MouseButtonEventHandler_MouseLeftButtonUp; All polygons have the same handler. My goal is to use a custom object when I clic...

MultiScaleImage functionality in WPF

The MultiScaleImage control (DeepZoom) is not available in WPF, only in Silverlight. How would you suggest getting similar functionality in WPF? I know it would be possible to host Silverlight in a browser control in WPF but this is my last resort. I don’t need all functionality of MultiScaleImage. In my application I’d like to have one ...

How does the Silverlight 3 VirtualizingStackPanel work?

Hi all, What are the actual conditions that make the Silverlight 3 VirtualizingStackPanel virtualise its content? For example is it only when elements are off screen regardless of what container it is in or does the VirtualizingStackPanel have to be in a ScrollViewer before it starts applying the virtualisation? I ask this because the...

Silverlight Identity over WCF Custom Binding

We are trying to establish the identity of the user using silverlight client over wcf service using custom binding. We ave tried numerous configurations etc with no luck. On the wcf services we have looked at the operation context, http context but the identity does not seem to be passed through. ...

Silverlight - Multiline textbox - Alt + Enter Issue

Hello All, I am stuck with the small issue... I am using Silverlight. I have a textbox with multiline property true. and i want the facillity that when user press "ALT + Enter" then cursor should move to the next line. I have already set the properties like AcceptsReturn, TextWrapping. But it is not working :( Can anyone please she...

How do I databind to a ViewModel in Expression Blend?

In WPF and Silverlight you can make a view model object and set it into the DataContext of a control when the control is constructed at runtime. You can then bind properties of the visual object to properties in your DataContext. One way to set the binding is to type the binding directly into the tag: <TextBox Text="{Binding Path=Desc...

Need help debugging: Having trouble getting data to Silverlight App through RIA Services, Entity Framework, MySQL

I'm trying to build a Silverlight App that accesses and presents data from a MySQL database. I'm trying to use Entity Framework to model the MySQL data and RIA Services to make the data via EF available to Silverlight. My Silverlight App is showing the correct columns in the datagrid, but it does not show the data (alternate link to im...

Silverlight GetElementById IE6

Hi, I have an odd error that you guys will hopefully be able to help me out with. I have this code in my silverlight app: private void MainGrid_SizeChanged(object sender, SizeChangedEventArgs e) { double actualHeight = this.MainGrid.ActualHeight; HtmlPage.Document.GetElementById("silverlightControlHost").SetStyleAttribute("height", s...

Silverlight Dynamic Image Loading Problem

Hi guys, I am creating a FlippingBook Silverlight application and I have run into a snag that I cannot seem to solve. The problem is with Asyncrously loaded Images. I have written a class that loads an image from a webaddress and stores it in a BitmapImage object. I bind to this image object to the Image Source on the silverlight imag...

silverlight range seeking

So I'm trying to use amazon and cloudfront to host my media. Unfortunately Amazon S3 does not send the correct headers like accept-ranges even though it supports range requests. As a result silverlight does not seek ahead using byte range requests. Questions: 1. What headers does silverlight require to issue byte range requests when see...

Adding more files to the ClientBin for Silverlight in an ASP.net MVC app

I have an asp.net MVC app that also has a silverlight project for some sprinkled in effects and functionality... I just added a new file to my silverlight project and am at a loss in how to migrate it over to the clientbin in the MVC application ...

Bind silverlight combobox to the result of another combobox

I want to do something like this: <combobox x:Name="cboCustomers" ItemsSource="{Binding Path=Data.Customers}"/> <combobox x:Name="cboInvoices"ItemsSource="{cboCustomers.SelectedItem.Invoices}"/> Anyone know of a way to do something like this in Silverlight 3? I am sure there is some information about it out there, but I am having bad...

Deployed Silverlight wcf service causes an error

Hi, I have seen many threads related to this but I still can't solve this problem. I have a silverlight busiless application in which I have a silverlight enabled wcf service added. Everything works fine on the developement server but when I deploy the application on ISS7 on same machine, when I access the service I get an error An exc...

Deployed silverlight enabled WCF Service Stops Working when development server is stopped

I have a silverlight business aplication that gets data from silverlight enabled webservice. When I run the application in dev environment, it works fine. when i deploy the application and the Asp.net web development server is working, then to the application works fine. But when I stop the development server, the application can't ac...

Animations on elements that are about to be removed from UI

I have a StackPanel from which I want to remove an element. Prior to removing the element, I want to perform an animation on the element to signal the element is about to be removed. However, performing the animation followed up by removing the element causes the element to remove immediately, with no visible animation. Is there a cor...

What are my options for streaming for silverlight?

I would like to implement limited scope streaming (LAN, multicast, even broadcast) where the client is implemented in silverlight. More importantly, I would like to stream from a desktop OS, not a server OS. As a result, I can't use the MS media server, which I believe requires WS2003 or WS2008. Ideally the solution would have some sort...

Silverlight clientaccesspolicy.xml crossdomain.xml

I am one of 2 developers on a silverlight project that is hosted online. The problem is that i seem to randomly have problems with our webservices not working (This never happens to my colleague). Using firebug, i had a look at any problems that it was reporting and i found this: GET clientaccesspolicy.xml 404 not found GET crossdomai...