silverlight-3.0

Are "WCF Data Services" going in the right direction?

I really like the idea of "WCF Data Services" but how does it work in a real life scenario? WCF Data Services provide just a nice way for the client to CRUD the data. However it's very limited in what you can pass and get back. So one ends up having all the business logic written on a client side. It's probably ok for small applications ...

Binding to a const field in Silverlight

I have a situation where some application wide values are stored as constants - this is a requirement as they are needed in attribute definitions (attributes must resolve at compile time, so even static members don't work). I wish to also be able to also reuse these values in XAML files. So if I have my constants like this: public clas...

Silverlight- bad mouse position when embedded in html page when Firefox has zoom

We have a Silverlight control embedded in an html page. When I zoom the html page in FireFox 3.5 (ctrl - +) and then try to click on something in the Silverlight control the mouse input is not taken at the correct place. I have to click above the control to get it. This behavior can be seen here: http://silverlight.codeplex.com/ Any...

Silverlight scrollviewer's scrollbar invisible when not active

Hello. How do i detect when scrolling is unavailable to the scrollviewer control and make it invisible. And the scrollbar only visible when there is a chance to scoll up or down. Thanks, Shawn McLean ...

Using Observable.FromEvent when calling a WCF service in Silverlight

I am trying to use the .NET Reactive Framework to simplify some asynchronous calls to a WCF service used by a Silverlight 3 app that I'm writing. The trouble is that I'm having a hard time finding a way to structure my code in a way that will work. Part of the problem, no doubt, is understanding what mechanisms are available in Reactive...

WCF RIA Services - Returning Entity from Invoke Operation

I was happily using RIA Services JULY 09 version and using a ServiceOperation for a method which takes some parameters and returns Entity. [ServiceOperation] public Entity TestMethod(string param1, string param2, bool param3) { // do something here } But as soon as i UPGRADED to WCF RIA services, I had to change [ServiceOperat...

Silverlight: Auto Scrolling down with Scrollviewer

I have a scrollviewer with dynamic content. On an event, a new content is made visible and the scrollbar appears. How do i make it auto scroll to have that content in view? Thanks, Shawn Mclean ...

ComboBox SelectionChanged event firing off unexpectedly

Hey Guys I have 4 ComboBoxes arranged horizontally : The titles are just for reference. [Platforms] [Releases] [Release Items] [Release Item Products] My UI model for the boxes is as follows: At first all four ComboBoxes are disabled (IsEnabled = false) When the page loads, an async callback gets the Platforms data and binds it to ...

What is the opposite of the Loaded event in Silverlight?

I am writing an app in Silverlight 3 using the Application Navigation template. So each page has a Loaded event, however I don't see a Closing event or an Unloaded event. Does this concept even exist in SL3? For instance, how do I dispose of resources when this particular page closes and I navigate to another page in my app? ...

Silverlight: Events in datatemplate for listboxes

Hello, The functionality I want is to have a remove button beside each item of a listbox so when the user clicks it, that specific item gets removed from the list. I am thinking about putting it in the data template but how would I wire up an even to that? Thanks, Shawn Mclean ...

Scope of the Pages in a Silverlight application

I have an app built with the Silverlight Navigation Application Template. I have a main form (e.g. MainPage.xaml) and a bunch of Silverlight Pages, which are swapped in and out of the main content area. In the MainPage.xaml, I have a DispatcherTimer which hits some Uri resources, regardless of which page I am on. Every now and then, i...

Run Silverlight 3 standalone

So I have a small Silverlight application that plays a slideshow of pictures. What I want to do is burn the application to a cd and mail the cd to my mother so that she can run the silverlight application on her computer. I am using Silverlight 3. How do I create a standalone silverlight application/player? ...

What DB required to make the Silverlight Business Application template work?

I've been trying to run the Silverlight Business Application template but it fails when I try to register. I have SQL Express with an MSSQLSERVER instance and I've defined the standard aspnetdb created. The error is: Submit operation failed. Unable to connect to SQL server database. at System.Web.DomainServices.ReflectionDomainServ...

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.) ...

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...

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 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. ...

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"> ...

.NET RIA Services - DataService problem

I downloaded an example of the application based on the .NET RIA services from the article: http://blogs.msdn.com/brada/archive/2009/07/22/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-6-poco-and-authentication-provider.aspx from the "download the full demo files" link. On my PC (MS VS 2008, SP1, NET ...