silverlight

Why do we need SDK along with .NET Framework?

We have to install Windows SDK along with .NET Framework. Why do we need the SDK if we have the framework? EDIT: This isn't just the case for .net development. Also, if you want to develop Silverlight apps, you have to install additional sdk. Why? ...

How can I get objects from ASP server to my Silverlight 3 app?

I have little Silverlight app that needs to make quries to server, is it possible to return objects to silverlight app or how can I communicate with server? ...

How to push data over the Internet?

I want to push data to a client application. The client app can be thick or a thin. The push has to happen over the Internet. How can this be done? EDIT: Is there a way wherein the client app opens a connection to the server, keeps it alive for its lifetime and then continues receiving data over that connection. Can I build something li...

Silverlight ListBox OnMouseOver event

I have a ListBox that is being bound to data from a WCF service. When the user hovers over one of the ListBoxItems, I want to display related text in a separate region. Each of the items in the data collection to which the list is being bound has a Description property. How can I wire up to the mouseover event for a particular ListBo...

Loading XML file from Silverlight

Hey, I’m looking to load data from an XML file that is external to the xap file but stored within the same folder. My experiences with loading XML are that the XDocument class is used, but this only accepts location string. This is fine if the xml file is contained within the XAP but i need it to be loaded external, regardless of the s...

Is it possible to display a message or default row in a Silverlight 3 Datagrid

I have a DataGrid which is bound to a PagedCollectionView and the underlying collection may contain no items. When this occurs the DataGrid does not render at all, no column headers or anything, and when the DataGrid is then re-bound to another PagedCollectionView that does contain some items it causes a system error System.ArgumentE...

Silverlight grid with auto width and height

Silverlight virgin here. How do I make the usercontrol surrounding my grid automatically resize to accomodate the grid width inside? Currently the usercontrol is displaying at about 300 or 400 pixels when the browser window is much wider. It renders both vertical and horizontal scroll bars around the data grid which is ugly. I want to se...

Better solution replacing the foreach loop or refining it

this.entityModel.Entities is a source to my datagrid(agdatagrid). I have kept AutoGenerateColumns="False". i have 6 columns in my agdatgrid i want 6th column to be visible depending on the data of that column..ie., if any row of that column contains the data then it should be visible and if none of the row contains the data for that co...

How to use Silverlight objects in web service?

I'm developing a web application that is supposed to display a HUGE amount of vector data using Silverlight on client side. Imagine something like google maps but using vector graphics only, so DeepZoom is not an option. I was planning to generate a huge XAML in web service and then return only small regions to clients using built-in SL...

Listing Attached Properties in Silverlight

Anybody know how to list the the attached properties that have been set on a UIElement in Silveright 3? Plenty of WPF solutions as usual! Cheers ...

Silverlight deploy website with db on host not working

Hello, i have built (locally) a silverlight website. It uses a mysql database (had to install mysql connector) and a wcf service to contact the db on the server. Locally, everything works fine. However when i uploaded it on my host, the silverlight application loads OK, but t cannot get the data from the host database. It's the first ...

Silverlight bind collection to Combobox in DataForm using MVVM

I have this problem, I've got Silverlight app written using MVVM. I need to create DataForm which is binded to property on ViewModel and I want to add ComboBox and fill it with values from other collection in the same ViewModel. Code: <dataFormToolkit:DataForm CurrentItem="{Binding NewUser, Mode=TwoWay}" AutoGenerateFields="False" Heig...

Silverlight Prism - Loading module(s) after successful login/dependencies between modules

I have a Silverlight Prism application that includes a toolbar module with login controls. I currently have a module in the main region set to InitializationMode.OnDemand in the Bootstrapper and can load it via ModuleManager.LoadModule() after a successful login in the toolbar module. However, this doesn't feel right as it's essentiall...

Embed a System.String in XAML

Is there a way to embed a string in XAML, give it and ID and refer to it later. I have tried: <Window x:Class="WpfApp1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib" ...

Setting Silverlight DataGrid to just throw an exception when binding field does not exist

I just wasted invested a good chunk of time trying to determine why a specific datagrid among many was showing shrunken rows with no text. After many trial and errors attempts to figure out what made this grid special, I finally found that the class used for the row items was marked private. That is a perfectly good reason, but I would...

Adding Silverlight MimeType using adsutil

I have a script that creates an app pool, web site - and then I want to use adsutil to add the .xap MimeType. I see this: cscript adsutil.vbs set W3SVC//Root/MimeMap “.extension,mimetype” However, since I am creating the web site in the same script I will not know the ID. Would anyone know how to do this with adsutil? Thanks, Rich...

Trouble using CollectionViewSource in Silverlight

Hi, I having some trouble when implementing the CollectionViewSource in silverlight. I'm new in this topic, so basically I've been following what I find searching through the web. Here's what I've been trying to do so far. I'm creating a CollectionViewSource in the resources tag: <UserControl.Resources> <CollectionViewSource x:K...

Cross Domain error for Sliverlight component in SharePoint 2007 Online

I have completed 'Integrating Microsoft Silverlight with a SharePoint Online Page' from the SharePoint developers guide and it gets a cross-domain error. I understand CrossDomain issues with Silverlight but I have two concerns: the guide makes no mention of requiring a crossdomain.xml or clientaccesspolicy.xml file which makes me think ...

silverlight textbox scrollbarvisibility

I have a text box with verticalscrollbarvisibility set to auto. I would like to do a test to find out if the scrollbar is actually visible during runtime. I have tried the statement: if (textbox1.VerticalScrollBarVisibility == ScrollBarVisibility.Visible) but it does not work. Any ideas? ...

How to pass a collection of Entities to .NET RIA Data Service?

Is it possible to pass a collection of objects to a RIA Data Service query? I have no issues sending an Entity, an Int or an array of primitive types, but as soon as i declare a method like this public void GetLessonsConflicts(Lesson[] lessons) { } i get a compilation error " Operation named 'GetLessonsConflicts' does not confo...