silverlight-3.0

How do you get the selected item from a Silverlight AutoCompleteBox?

Hi, I'm hopefully missing something extremely obvious here, but for the life of me I can't figure this out. I have an AutoCompleteBox control that is retrieving results by way of an asynchronous call, although I can't find a reliable way in which to know when a user has selected an option from the list of returned values. I've tried ho...

How to call javascript function on a Silverlight 3 object?

I have the following Silverlight control defined: <object id="objImageViewer" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="500px"> <param name="source" value="../ClientBin/SomeImageViewer.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" va...

silverlight 3 navigation page not availble in VS as item to add

I've recently upgraded my computer from Vista Home Premium 64-bit to Windows 7 Home Premium 64-bit. I've re-installed VS 2008 web express, and re-installed all the silver light sdk's, tools, etc. But now when I want to add a Silverlight Navigation Page, it is not avialble to me in the list of items that can be added. The navigation dl...

What are same *hidden* useful bits of information you can get from the client in Silverlight 3?

I'm wondering whether you can get the client's machine name. I guess you cannot. Its interesting what you can get in the System.Windows.Application namespace. I guess hidden is not the right word, more like "less-used" or unknowns. For example I use the one below to get the current URL var hostName = Application.Current.Host.Source.Ho...

Silverlight RichTextSomething

I'm building an application with Silverlight 3.0 and I need a Text control that can provide the following features: Copy and paste Formating (either bold or color) Scrollable progamatically (either natively or through a ScrollViewer) Any ideas? ...

Circular effect in ticker-silverlight

Hi All, I am working on a silverlight ticker application, something like 5 links will be visible and they will be moving like a ticker(right to left). I am able to parse the i/p xml file and also getting the Title and corresponding urls, those are coming properly in the page, also its moving like a ticker , but the circular effect is mis...

Caliburn and datatemplates in Silverlight 3

Does anyone know if the same functionality for displaying views depending on object/viewmodel is applicable to Silverlight 3? Like this: <Application.Resources> <DataTemplate DataType="{x:Type vm:CustomerViewModel}"> <view:CustomerView /> </DataTemplate> <ContentControl Content="{Binding Path=CurrentView}"/> public...

Formatting multiple bound field in one TextBlock in XAML

I have 2 fields that I'd like to format into a TextBlock, example: "{0} of {1} hours used". Currently have: <TextBlock Text="{Binding HoursEntered}" /> <TextBlock Text=" of " /> <TextBlock Text="{Binding EstimatedHours}" /> <TextBlock Text=" hours used " /> Was looking at StringFormat for a single field, however this appears to on...

Client-Server without shared codebase

We're developing a silverlight multiplayer game using TCP connections. We have all of our game objects and engine stored in a seperate assemble that we meant for the SL client and the server application to share. However, it appears that the special SL assemblies cannot be shared with pure .NET applications and vice versa. So what are ...

Dataform fields won't appear

Hello! I am trying to learn how to use the Silverlight 3 DataForm control, because I need to define the DataForm fields myself in the XAML code, that is, I don't want to use the AutoGenerateFields property. My problem is: the dataform works perfectly when the AutoGenerateFields is set to true, but when I create a DataForm and set the fi...

Silverlight 3 DataGrid - Rounded Corners

Is there an easy way to give rounded corners to the boundary of a DataGrid in Silverlight 3? Thanks a bunch! ...

Silverlight application broken with FileNotFoundException in System.Windows.Controls

I've been working on converting a Silverlight project from Silverlight 2 to Silverlight 3. Note that I've never had SL 2 binaries or development components installed on my machine (it's only a month old). This has been going fine and the app was running until I started getting a build error with ValidateXaml raising a FileNotFoundExcept...

Silverlight 3.0 C# - Using Methodbuilder to create a SET method, and adding the MSIL with ILGenerator and Emit.

Hej All I have some code that builds a new TYPE runtime, it sets the GET and SET method using MethodBuilder. (Its an exampel from the web, and thanks to the Guy, that wrote it, i unfortantly lost the ref. to him, but he is in my thoughts) TypeBuilder typeBuilder = module.DefineType("MyClass", TypeAttributes.Public | TypeAttributes.Clas...

ChildWindow Modality

By default the ChildWindow Overlay covers (and disables) the entire root visual. I want to cover (and disable) just part of my UI. How can I alter the existing ChildWindow to allow me to specify the Root? Thanks, Mark ...

Porting from VS2008 to Blend 3?

(X-posted to silverlight forums) Created a Silverlight class library in Visual Studio 2008. Open it in Blend 3 so that I can edit the visual elements using a nice wysiwyg editor rather than hand hacking the xaml. The library builds in both Blend and VS2008. Apps built using the library build in both, and run properly. Whenever I...

How can styles be merged in Silverlight?

My goal is to extend the already set style of an object. So assuming I have the following two styles: <Style TargetType="Ellipse" x:Key="OriginalStyle"> <Setter Property="Fill" Value="Blue"/> <Setter Property="Width" Value="100"/> <Setter Property="Height" Value="200"/> </Style> <Style TargetType="Ellipse" x:Key="NewStyle"> ...

Silverlight 3.0: Can't add references beyond v2

I wanted to add System.Data.Linq to my Silverlight 3.0 app, but the only references that are available to me are listed as version 2.0.50727 or lower. Shouldn't I have access to more than that? In my project's properties, my Target Silverlight Version is set to "Silverlight 3.0" (the only option), and I'm using Visual Studio 2010 Beta 2...

Custom UserNamePasswordValidator with Silverlight 3.0

I have implemented a WCF service that uses a TransportWithMessageCredential binding and a custom UserNamePasswordValidator. I have a Silverlight 3 client connecting to this service. If I set valid credentials it works perfect, however, in the username validator I throw a SecurityTokenException if the username and password does not match...

Treeview MVVM ObservableCollection Updates

I have a treeview which binds to lots of nested ObservableCollections. Each level of the treeview shows an aggregated sum of all the hours in child items. For example: Department 1, 10hrs ├ Team 10, 5hrs │ ├ Mark, 3hrs │ └ Anthony, 2hrs └ Team 11, 5hrs ├ Jason, 2hrs ├ Gary, 2hrs └ Hadley, 1hrs Department ...

Is it possible to pass network credentials to a web service from Silverlight UI?

This problem is specifically in silverlight 3.0: This the network credential object I created: System.Net.NetworkCredential credential = new System.Net.NetworkCredential("mohammed.haroon", "abcdefg123"); And my web service is Service1 Service1 WebService = new Service1(); WebService.ClientCredentials = credential; WebService.Execu...