silverlight

calling windows service using silverlight

How can i call a windows service using silver light? ...

Silverlight OOTB Support for 'Save File' browser dialog.

Hi All, I am in the design stage of an application that must be both a standalone app & a web application (To save the costs of building 2 near identical applications twice). Basically I have opted to go for a silverlight OOTB application that will be installed on the standalone machines and they will write to a collection of files in t...

Looking for Tree Grid control for Silverlight

Quick question: Is it somewhere available - preferably free / opensource or at reasonable price? EDIT To be more precise, there's an example of winforms control (SandGrid from Divelements) what I'm looking for. Forming a tree is important, grouping by isn't necessary. ...

Domain Service vs WCF Service?

Hi all, Im slowly delving into Silverlight and after a good while trying I am finally able to return my own Custom Object from my web to my silverlight client, use a Siverlight enabled WCF service. Now, im a little at a loss between the differences of a Domain Service, and a WCF Service. Ive worked through the tutorials where a Domain...

SilverLight - Binding a command to button within control template

I have a datagrid. Within that datagrid, I have bunch of column headers styles. Inside the control template of this style, there is a button. I need to bind a command to that button. Note that, there is also a TextBlock within the header style which I bind using element to element binding, as I will not have my viewModel in the header'...

Silverlight CRUD oprations

how to add data to data grid using Ado.net service in Silverlight ...please provide me some links to learn thx..... ...

Silverlight 3 - Filtering an Observable Collection

Is there a way to filter/sort an observable collection and still keep the notifications? I have looked around and I found CollectionViewSource which filters and sorts the collection as I require but when the an items property in which the filter relies changes at the source collection it does not refresh the filter. Basically i requi...

Out of browser Silverlight app - how to setup automatic updates?

I'm wondering how to setup my Silverlight project to enable automatic updates for out-of-browser application. I added some code in app.xaml.cs (see below), rebuild app, installed as out-of-browser, changed versionionfo in asseblyinfo.cs, rebuilded, run again but unfortunatelly no update happened. Am I still missing something? publ...

Silverlight TextBlock Visibility property inital value before binding is applied

I Have a TextBlock on Silverlight Page. XAML <TextBlock Text="*" x:Name="HasChangesTextBlock" Foreground="Red" FontSize="14" Visibility="{Binding Path=HasChanges, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="5,0,0,0"> </TextBlock> Page loading takes few moments. And before binding i...

Obtaining caret position in TextBox

How to get caret position (x, y) in the visible client zone in TextBox control? I need to add an auto complete feature to the text box. I've found solution for WPF, but it can't be applied in Silverlight. ...

How do I resize a Silverlight 3 application and all child controls and keep aspect ratio

Hi I'm building a Silverlight 3 application and I would like it to resize depending on the size of the web browser. I have found http://community.irritatedvowel.com/blogs/pete%5Fbrowns%5Fblog/archive/2008/07/04/How-to-Resize-a-Silverlight-2-App-and-Keep-the-Same-Aspect-Ratio.aspx But the solution suggested doesn't seem to work on s...

How do I play an ogg vorbis file in Silverlight?

I'd like to play back ogg vorbis audio from http in Silverlight. What do I need to make this happen? ...

Silverlight Label content binding problems

I'll preface this and say that I'm new to Silverlight development by about week so I'm most likely doing it wrong... Anyway I have a Label and a TextBox done up thusly in XAML: <dataInput:Label Target="{Binding ElementName=JobCode}" Height="18" HorizontalAlignment="Left" Margin="15,7,0,0" Name="lableJobCode" VerticalAlignment="Top" Wid...

How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function?

We are creating a client in Silverlight that will show a lot of TIFF images. Silverlight natively do not support TIFF. I need a control/class to convert tiff to jpg in runtime inside the Silverlight client. Any idea? ...

Silverlight 3/4 Navigation Application - Access child page controls from Parent page

How can I access child page controls from the parent page in a Silverlight 3/4 Navigation Application? I wish to hide an image from the child page when I click a button in the parent page. ...

When to use UserControl vs. Control in Silverlight?

I'm just getting my feet wet in Silverlight, and don't really understand the differences and pros/cons of creating a UserControl vs. creating a Control for the same task (as in when you right click on a selection in Expression Blend, for instance). It seems like selecting "Make Into Control" just creates a new template for the base type...

Bi-directional cascading combo boxes in Silverlight

Hello, I'm interested in creating combo boxes that represent many-to-many relationship. That is if one combobox changes selection that would trigger the other combobox to change content, and vice versa. Anybody knows how to do it in Silverlight? I tried it, but I either get SelectedItem reset in the second combobox when I change the v...

Invalid cross-thread access issue

I have two ViewModel classes : PersonViewModel and PersonSearchListViewModel. One of the fields PersonViewModel implements is a profile image that is downloaded via WCF(cached locally in isolated storage). The PersonSearchListViewModel is a container class that holds a list of Persons. Since loading images is relatively heavy, PersonSear...

Multiple Async Request Synchronization

I'm developing a Silverlight app that makes multiple async requests to a number of web services. I want a modal "loading" dialog to stay active until all the requests have completed. I'm managing the situation by using a counter variable that gets incremented on each async request start event, and decrements on each async complete even...

Accessing Template item in code behind a Silverlight control

I've created a custom control for use in my Silverlight application. Its template is defined in the control library's Generic.xaml. Is there any way to set properties of the items in that template from the control's .cs file? ...