silverlight

I can't read silverlight tag in IE !!

This is really weird. Here's a simple markup <div id="div1"> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640px" height="480px"> </object> </div> and executing alert(document.getElementById("div1").innerHTML); shows me <OBJECT type=application/x-silverlight-2 height=480 width=640...

How do I stop cropping of a transformed (scaled) image in a grid (silverlight)

I have a grid with an image in it. Initially, the image is larger than the grid, so it gets cropped which is fine, but if I apply a scaling transform to causing the image to shrink, the portion that was initally cropped remains cropped, but I want it displayed now, because it would fit in the grid. I concidered putting my image in a c...

Silverlight Or ASP.NET

What's the advantage of one over the other? I am so tempted to implement everything in silverlight now, so is ASP.NET, in particular, with Ajax, going to be dead? For an enterprise solution especially, with 100+ views and 1000+ pages, is it still feasible? Why isn't silverlight adopted that much by most enterprises? It is mostly used...

MVVM & WCF - View Model and Model Relationship

I am not understanding how my model can be a WCF service. It makes sense when its an Astoria partial class residing on the client that allows remote calls to do persistence calls, but a WCF service doesn't have properties for model fields that can be used to update a data store. Even if I could factor out an interface for a model/dom...

Silverlight3 RTM crashing both FF and IE with error code

On my XP machine, I have Blend3 RTM and Silverlight3. Since I made this update, Silverlight crash both IE and FF (error code 8013150a) as soon as the Silverlight loading animation is shown. How to solve this issue ? ...

DatePicker clipped by the Silverlight control

I'm using a DatePicker position at the right-hand side of the Silverlight control. When the calendar popup comes up it gets clipped. The Popup documentation states that it should be clever enough not to try to display itself out of the Silverlight control but they are clearly lying. Is there an easy way to remedy this? I'm quite happy...

Saving user credentials in a Silverlight application

What is the best way of saving user credentials in a Silverlight application? We're making use of the new Silverlight 3 feature that allows WCF calls to be authenticated: we prompt the user for their credentials to the service within Silverlight, and we want to offer a "remember my password" feature. In .Net we can use the ProtectedDa...

Silverlight; the good, the bad or the ugly?

I've recently started a new project, and we plan to create this in Silverlight. We do want to develop it as a RIA, and based on previous experience with other .Net technologies (such as WPF) Silverlight feels like the right choice. Silverlight has been around for some years now, and as version 3 is out I assume - and got the impression...

Silverlight will not load

I am trying to create a "Hello world" application in Silverlight 3.0, but when it runs, there is an error: (IE 8) Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings When the project was created I chose t...

Silverlight MediaElement video scale issue

Hello everyone, I am using VSTS2008 + C# to create a Silverlight application based on ASP.Net web application. I only add one line to the default page.xaml to host a local video, Here is the content of XAML, and I want it to scale according to video width/height ratio related to the display area on web page, so I select Stretch="Unifor...

How do I make a Silverlight UserControl a content container?

I am making a Silverlight UserControl where the consumer of the control needs to be able to provide custom attributes and content. I thought this would be as easy as exposing my custom attributes as dependency properties and deriving from ContentControl, but apparently not. Here are my questions regarding this: I got the attribute to...

Does Facebook bar re-loads on every request ?

While browsing Facebook pages I was wondering if their bar loads on every request. Using Firebug i discovered this is true, but my user experience on their site tells me is not. I know that their bar use position:fixed; and bottom:0px; CSS style, is this the only trick they do ? Other sites loads their all content using an iframe while ...

How to implement "live" filtering in Silverlight

Hi! I'm using the new PagedCollectionView as my ItemsSource. I've bound the CollectionView to a DataGrid, and need the grid to only show values that passes my filter like this: var oc = new ObservableCollection<User>(); var pc = new PagedCollectionView(oc); dataGrid.ItemsSource = pc; Where User class impl...

Overriding styles in silverlight from XAML fetched from database

Within my App.xaml I have the following segment: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Assets/Styles.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> I want to be able to overrid...

running an xap (silverlight app) in VS 2005

I've written a small silverlight app in vs 2008. Now i'd like to plug that app into a site that was developed using vs.net 2005. what are the steps needed to do this. This is what i've done so far. In web.config In the asp page. <%@ Register Assembly="System.Web.Extensions, Version=3.5...

ProgressBar in Silverlight Custom Splash Screen

How does one embed the Silverlight ProgressBar control in a a custom splash screen? I put the following into loose xaml (simplified for brevity): <Grid xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <ProgressBar /> </Grid> The error message is as follows: Error: ...

Silverlight DataGrid Refresh Between Xaml Files

Hello, I have a Page.xaml file and a AddNewProject.xaml. In the Page.xaml file I have a ProjectDetailsDataGrid and a button to add a new Project. When I click on the Add New Project button the AddNewProject.xaml file becomes visible for the user to enter new project information. I am having a problem trying to refresh the ProjectDeta...

Sharepoint: Communication between WebPart and silverlight control

Is there any way to send notifications from the webpart to silverlight control hosted in the same webpart? ...

How can I expose an Office file using Silverlight?

I'd like to expose Office (Excel, Word) files from a web site. I understand Office 14 now provides Silverlight components to view/edit Office files. What do I need to setup on my web site to use these components? ...

looking for some cool Silverlight chart Demos

Hello everyone, I am currently using Reporting Service of SQL Server 2008, and I think the user interface is not very elegant. And I want to use Silverlight as user interface to render reporting service backend data. Two questions, Is it possible? Reporting Service exposes interface which Silverlight could retrieve data and render? I ...