silverlight

Using DataAnnotations for validation in MVVM

Hi, I've discovered the new data annotation features of SL3 and I'm using them for user input validation. I've got inputs like these: <dataInput:Label Target="{Binding ElementName=inputName}"/> <TextBox x:Name="inputName" Text="{Binding RequestDemoData.Name, Mode=TwoWay, Valid...

how to create a file upload button in silverlight

Stupid question I know but how do i create one? All i need it to do is open up a dialog box and populate the text box next to it ...

How can I eliminate the initial load time on the Silverlight Autocompletebox control?

I have a Silverlight Autocompletebox to show a list of staff members, and it is working great. I get the data by loading a BusinessObjects list. My problem is that the very first time you start typing something in the box, it takes close to 2 seconds to come back with suggestions. Afterwards, any subsequent searches seem almost instan...

Custom silverlight user controls do not appear in Blend Assets tab.

I've created a control in blend (xaml and code behind), saved it, and rebuilt the entire project. Now, not only does this new control not appear in the Assets tab in blend, none of the other user controls i've created appear either. I've rebuilt several times, blown away the obj and bin directories and rebuilt again, to no avail. How ...

nullsoft installer to install silverlight

Does anyone know if silverlight can be packaged into an installer such as NSIS? ...

WPF/Silverlight: Why do animation classes require dependency properties?

Why do animation classes (like DoubleAnimation) require dependency properties? Dependency properties have a lot of overhead when compared to a simple property. Wouldn't passing in an object and property name and using to reflection to retrieve a setter delegate have made the animation classes more flexible and generally more usable? I...

Silverlight Virtualization Recycling Errors

I have the following XAML for Silverlight 3: <ItemsControl MaxHeight="400" VirtualizingStackPanel.VirtualizationMode="Recycling" > <ItemsControl.Template> <ScrollViewer> <ItemsPresenter /> </ScrollViwer> </ItemsControl.Template> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Vi...

Silverlight cant find page error

I have started a a new project (to refactor some code), and just can't work out why I keep getting "Can't find page /Index" error. The code works fine until I use an add method (on any collection type). So I don't think there is a problem with the navigation, but an issue with my IndexViewModel class. public partial class Index : Pag...

dynamic column binding in Xaml

This is a follow up question from an earlier post (here). I have some 'header' information stored as: Dictionary<string,string> - where the first string represents the field name, and the second the heading I want displayed. I have a set of dynamic data that is stored as: Dictionary<string, object> - where string is the field name. I ...

Silverlight or WPF Open Source Project for learn

Looking for Silverlight or WPF Open Source Project for learn. Particular I am interested in Silverlight\WPF Custom Controls\Styles Development and want to find good patterns\solution for current project. ...

Family Tree in Silverlight

Hello Currently I am working on a project in which I have to create family tree. It will have almostn number of hierarchy. Whole tree should be displayed to user as well as zoom in zoom out facility should also be there . Scrolling is required.At a time user can see some specified portion of tree.When user scrolls horizontally or vertica...

Binding to a complex object in Silverlight

i know it must something simple that i missed. I use data services to get data into my silverlight application. When i bind the data to my datagrid it works like a charm LessonGrid.ItemsSource = context.Lessons however as soon as i try to wrap my objects into more complex data structure it stops working LessonGrid.ItemsSource = conte...

Silverlight Image Positioning/Transformation

What I would like to do is the following: Change the points of the four corners of an image. What is possible now, is to change the top left corner. But that will only move the image. I want to transform the image by changing the corner coordinates. The effect will be a 3d-kind transformation. A skew transformation will not do, I want ...

Size a TextBlock to a Button that changes Width dynamically

Hi, I have a TextBlock that's on top of a Button in a Grid. I'd like to have then displayed thus: "some very long text" <-- text "that doesn't fit" <-- text wrapped [my button text size] <-- button However, what I've got is this: "some very long text that doesn't fit" <-- text [my button text...

physical path in silverlight

I need to get physical path in silverlight. I'm using WCF service, I created one folder called 'Myfolder'. So I need to get the path of myfolder Please help me. ...

ADO.NET DataServices with Prism

I've start using prism with silverlight 3, but, we are trying to implement it to work with ADO.NET DataServices. The "DataServiceQuery" query type required to use with Silverlight, requires a Asyncronous call to be fired after the query. This will break ous Prism Pattern by what I can see. Any ideas to get only the data of the query to u...

What does WPF still have to offer over Silverlight 4?

Given the list of new features announced in Silverlight 4, when is WPF still required? ...

Why change from WPF to Silverlight 4?

I'm working on an application we made WPF instead of Silverlight as we wanted a full blown desktop application with the whole unique feeling and advantages that gives. However, with the announcement of Silverlight 4 I hear there is a buzz about Silverlight mostly being the preferred choice also for desktop applications. So; why should ...

Where should the data be stored in MVVM?

I've got this Silverlight Prism application that is using MVVM. The model calls a WCF service and a list of data is returned. The ViewModel is bound to the View, so the ViewModel should have a List property. Were should I keep data returned by a WCF service in MVVM? Should the List property be calling into the Model using its gette...

What does Silverligtht 4.0 Trusted Mode mean on a Mac?

Are there any special considerations we will need to take into account for Mac scenarios? Furthermore, with features such as COM interop which aren't applicable on a Mac, how do you give visibility of these capabilities to your code? if (Silverlight.Environment.SupportsCOMInterop) { // do stuff } More generally, could your code de...