silverlight

C# https connection issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a Silverlight 3 application and I need to access some https address on another web server (other than the server delivering the Silverlight application). Here is my code which works with .Net 3.5 console application, But I cannot find class like ServicePointManager when us...

Calling webservices from Silverlight 3 when running out-of-browser

We have this nice Silverlight 3 application that communicates with a web server running some WCF web services. It works well when it is running in the browser, but at soon we try to run it outside the browser it doesn't call our webservices. I have tried to find out why this is happening, but I can't find any explanation. When attach...

Is it possible to capture mouse events for a Silverlight control via JavaScript?

Since it appears Silverlight does not support the middle mouse button click event, is there a way to capture this event in JavaScript when the user middle button clicks on the Silverlight control? That way, I could pass the event on via a javascript to silverlight bridge. ...

Are there any fluent WPF projects?

As part of my on-going attempt to come to terms with WPF/XAML, I've become interested in the application of fluent interfaces to UI coding. I am aware of Fluent Silverlight (http://code.google.com/p/fluent-silverlight/), but I can't seem to find anything equivalent for WPF. Just as a personal note, I'm finding it very difficult to buy ...

Sliverlight/C# web application - send PDF to client's printer without opening

Hello, I am working on a Silverlight web application that creates PDF documents. We want our clients to print these PDF documents but we do not want them to see it or save it locally. Is there a way to send PDF data directly to client's printer without opening it in client's browser? Please advice. ...

Make a List of Lists where List Has Different Type Objects

In ASP.NET 3.5 / Silverlight, I have a situation where I need to send four small Lists from the server to the client. Each sublist is a list of objects. I would like to do this with one call from the client. So, for example: ListA is a List of POHeader objects ListB is a List of POLine objects ListC is a List of Vendor objects List...

How to Programatically "Click" a Silverlight HyperlinkButton (WebAii)

I'm currently using the WebAii automation framework to write some user interface tests against a Silverlight 3 application. I'm new to Silverlight and suspect that I'm missing some bit of information about the HyperlinkButton. The application has a HyperlinkButton and I'm attempting to write code that navigates to the page, finds the b...

Impersonate User for Silverlight Unit Test

I'm attempting to write some tests using the Silverlight Unit Test Framework (the unsupported, unofficial MS library Microsoft.Silverlight.Testing). I need to impersonate three different users when testing some functionality of our application. Our application is for internal use at our company, so the authenticated user may get differe...

Setting the Datasource for ComboBoxes in cels in Silverlight DataGrid

I've got a gridview where the collums binds its data to the Datagrid.DataContext in Page_Loaded: private void Shema_Loaded(object sender, RoutedEventArgs e) { GridName.DataContext = AllPdiLines; } I want a grid where one of the cels in every line contains acombobox with selectable values which then binds to the datagri...

UserControl Visibility binding through ViewModel

Simplified architecture of my Silverlight app: MainPage; DataContext set to MainViewModel MainPage has two elements: UserControl and Rectangle in MainViewModel, I have two properties, UserControlVisible and RectVisible, both of type Visibility, binded to Visibility properties of those two elements in MainPage.XAML MainViewModel has I...

How to redirect key events from TextBox to DataGrid in Silverlight?

Hi, I have TextBox which allows the user to enter a query and a datagrid below with live results. I want to redirect Down/Up/PageDown/PageUp keys from TextBox (which is focused) to the DataGrid with results. I don't have a problem with intercepting KeyDown/KeyUp evens from TextBox but don't know how to "inject" them into DataGrid. Wha...

Determine local endpoint on Silverlight socket

Is there any way to get the local end point of a connected Silverlight TCP socket without having to resort to asking the server? ...

Should I always use a Gaming Loop in a Silverlight Game?

I have read about using CompositionTarget.Rendering Timer for the primary gaming loop in silverlight. To be used for hit testing and general game logic as would be done in any language. This said I was wondering is it best to move objects around inside this x pixels at a time (as a game in any other language) or can I utilise silverligh...

Silverlight MediaElement Source Title

Hello, I'm using a MediaElement with this source: http://origin-community.ministryofsound.com/asx/radio/mosRadio.asx When I open it with Windows Media Player I get a title: "Ministry of Sound Radio", but I've seen the MediaElement properties and can't find this title. Can anybody help me with this? Thank you ...

Can you explain Microsoft .NET RIA services to me?

Ive read about it and to be honest it all seems like a bunch of gibberish to me. I don't want to read all about how it enhances your experience and you can use it to built this and that. Can you give me a clear definition of what it does, that would be awesome. ...

How to data binding two UI Elements so that they can update each other immediately in Silverlight?

Suppose I want to databinding two TextBox. I can do it in XAML: <TextBox x:Name="FirstBox" Text="{Binding Text, Mode=TwoWay, ElementName= SecondBox}"></TextBox> <TextBox x:Name="SecondBox"></TextBox> Or, I can do it programmatically. Binding binding = new Binding("Text"); binding.Mode = BindingMode.TwoWay; binding.Source ...

Silverlight 2, Cannot Update Service Ref with New Service

In Silverlight 2, I am attempting to add a new service which will return an object containing two lists from the WCF Service to the Silverlight app on the client. The svc and interface file already contain two contracts which work and are being used. After adding the new service, I click on the "Update Service Reference" option in the S...

Silverlight 3 - ListBox : how to achieve Smooth Scroll and catch MouseDown/MouseUp events

I'm trying to adapt the behaviour of the ListBox for my needs and I ran into several problems 1) How can you programatically set the scrolling position of the ListBox The ListBox does not provide an accessor to its inner ScrollViewer so that you cannot scroll it to wherever you want. 2) How to accurately set the vertical scrolling (i.e...

Auto-tab in Silverlight 3

I have a requirement to be able to auto-tab from one control to the "next control" in a SL3 app. For example, a TextBox is limited to 3 characters - on typing the 3rd character the focus should automatically move to the next control on the form (my actual usage is slightly different but that example suffices). However, as SL automatic...

Silverlight: Changing a property of a static resource at runtime

Hi folks, changing a static resource during runtine is something that sounds not possible. I have a TextBox which displays a simple number. Then I have defined a style, which changes the Template of the TextBox to become a round TextBox: <Style x:Key="RoundNumberDisplay" TargetType="TextBox"> <Setter Property="Width" Value="2...