silverlight

How to play MP4 (H.264 video) in Silverlight 3 (or 4) from a URL?

So I have some URL of an MP4 file. I want to develop a simple Silverlight application to play it. How to do it? (Preferably with example code.) ...

Silverlight - Sending variables between the frame

I have one main page in my Silverlight project. I have two frame inside this page. The one called Contents and the other called Footer. What I wonder is, how can I change the variables in the content in the Content of whether that's a click event in the Footer? In Mainpage.xaml: <UserControl x:Class="SilverlightApplication10.MainPa...

Caliburn : How to get an async result back to viewmodel and then view

Hi, I have a ContainerCommand (which is registered in Unity) which calls a web service asynchronously. What I want is the result of the web service to be some how propagated back to the view model and then view. The app is written in Silverlight. How can I do this? JD. ...

Silverlight: How can I be notified when an element is moved?

How can one be notified as to when a UIElement has been moved (eg: when a Panel has reArranged its child elements, or an Animation is moving them around)? So far I've investigated the following dead ends: a) the LayoutUpdated event: works when the Panel moves things around -- but doesn't fire when Animations are applied to the position ...

.NET RIA Services - work with custom data layer

There is a web-application that works with Business Logic Layer (BLL). The BLL gets data from the Data Access Layer (DAL). The DAL gets data from DB through and does custom mapping. At the moment it is required to add into the web application some functionality that will be Silverlight-based. It is planned to use .NET RIA Services for t...

Silverlight ChildWindow: HRESULT E_FAIL on ChildWindow.Show()

Hello, I have some problems with ChildWindow control, I have created an error window control that is shown after unhandled exception is caught in app.xaml.cs. The problem is when I try to show the error window, sometimes it works fine, but sometimes I get this nasty exception: Message: Error HRESULT E_FAIL has been returned from a cal...

Handling selection and deselection of objects in a user interface

I'm writing a small audio application (in Silverlight, but that's not really relevant I suppose), and I'm a struggling with a problem I've faced before and never solved properly. This time I want to get it right. In the application there is one Arrangement control, which contains several Track controls, and every Track can contain Audio...

Where to put configuration information in Silverlight?

Hi, I am using prism and have a number of modules. In several of them I am making webservice and wcf calls. I want to be able to configure the information about these services in one place. Should I do this in a resources.resx file? I remember a settings.setting file but that was in a web application. JD ...

WCF RIA Services Business Rule /Database Exception Handling

Hi I am using WCF RIA Services VS2008/.NET 3.5 and trying to do exception handling. I have overridden OnError method of DomainService and doing my exception handling in that method. I am trying to throw Business Rule Exceptions or Database Exceptions to client in some form so that client recognizes them and handles them differently. Th...

Listbox items dynamic load.

I want to create dynamic load for items in Silverlight Listbox. When user reaches end of items by scroll bar (or mouse wheel), then I want call new request for next 10 (or some different) items. And problem is which event on listbox can handle this? ...

Silverlight 4 datagrid not re-sorting

I'm new to both Silverlight and RIA. I have a simple form with a DataGrid bound to a DomainDataSource object. The rows displayed represent section headings to be displayed on a webpage. One of the columns is called OrdinalPosition and I have specified that the grid is to sort by this column. I have a custom column with up and down ar...

Silverlight Isolated Storage and Host Name Redirects

I have a site that serves up a pretty substantial Silverlight RIA and it makes use of IsolatedStorage. The SL app is served up from https://www.site.com/Application (MVC View that hosts the SL object tags, etc). It is also served up from https://site.com/Application. The problem inherent in this is that this will create two separate I...

How to Ignore Tranform for Fill Object in Shape (Silverlight)?

I have a Rectangle Shape in Silverlight that is rotated 15 degrees. It is filled with an image. The normal behavior of SL is to rotate the Fill object with it's parent (the rectangle, in this case). Is there any way to ignore the transform effect for the Fill object? I'd like the image to continue to point north on the screen. Here's th...

How to render a text onto a WritableBitmap in Silverlight 3.0?

Hi, I have a set of image resources in a Silverlight client and I'm trying to render text on them. I can load the original BitmapImage into a WriteableBitmap but see no facility for rendering text onto it. Could anyone point me in the right direction? Thanks, ...

Silverlight: Creating a modal control

Hello, I have a window with some contents. I'd like to click a button and another control (a grid/border) slides up. But i'd like the contents of the window that is under this slided up control to be modal. I cannot click or use keyboard to activate anything. Thank you. ...

Iterating over Word Document Fields using ComAutomationFactory in Silverlight 4

Update: This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved this issue by switching to a full blown WPF application and using regular old Microsoft.Office.Interop.Word. But I'm still very interested in how to get this to work using the dynamic val...

Silverlight numeric textbox?

I tryed to create my own numeric textbox here is my code: public class NumericTextBox : TextBox { public NumericTextBox() : base() { this.Text = "0"; } private void HandleKeyEvent(KeyEventArgs e) { e.Handled = true; if ((Keyboard.Modifiers & ModifierKeys.Alt) != 0) { ...

Silverlight setter causes AG_E_INVALID_ARGUMENT exception

Why is my Silverlight 3 setter causing AG_E_INVALID_ARGUMENT exceptions? Here are two code samples. The first throws an exception but th second does not. What am I doing wrong in the first one? This one throws the exception: <Grid.Resources> <Style TargetType="Button" x:Key="refreshBtn"> <Setter Property="Content"> ...

Open Source Matroska container Silverlight MediaStreamSource Parser?

So we have some File.mkv with h264 + mp3 in it we need to play that thing in Silverlight (3 or 4)... So I'm searching for some Open Source Matroska container Silverlight MediaStreamSource Parser/Eater? Where to find such thing? ...

Use EntityFramework to save Items (with new elements in multiple tables) after being sent over WCF to a silverlight app

I have a web app that sends ADO Entity data model classes over a WCF service to Silverlight. Imagine this simplified structure for the database [Item] Id Name [ItemDetail] Id ItemId value While the Item is in my SilverlightApp I add an ItemDetail to the Item, this is ADO so it's something like: var fv = new ItemDetail(); ...