silverlight

Autogenerating WPF/Silverlight Views (scaffolding)

Are there any tools out there to autogenerate the different components used to make up a WPF application? Model, View, View Model, XAML form? ...

Silverlight - Saving an already downloaded image to disk.

Hi, I have a silverlight application that displays images. These images display fine but I would like to go one step further and let people save an image to disk. I don't want to redownload the image using the WebClient class. I can see the image so I know it's already cached somewhere on my computer. Technically, I don't think it sho...

White background when embedding silverlight app

I currently have a silverlight app designed mainly in expression blend, using a border with a drop shadow effect encircling a rounded rectangle control. When I embed this application into a page, there is a white background around the object. I want to make this background either transparent so the page background color (defined in css) ...

WPF equivalent to Silverlight "RootVisual"

I am trying to port an application from silverlight to wpf. Unfortunatley I am new to both. Is there an equvivalent to the following Silverlight code in WPF? private static Canvas GetCanvas() { var uc = Application.Current.RootVisual as UserControl; if (uc == null) { re...

i don't see silverlight project on test.aspx in Firefox,explorer etc?

i try to learn silverlight but i don't understand why silverproject cannot show on SilverlightTest page <UserControl x:Class="SilverlightApplication1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Canvas x:Name="...

Web Service missing methods when called from Silverlight

I created WCF web service, deployed it, and debugged it. I wrote a console app, referenced the web service, and everything works. Now, I'm attempting to consume the web service in a silverlight 3 application. I added the following code to a click event. TagServiceClient client = new TagServiceClient(); Tag[] tags = client.GetTags(); cl...

Master-detail Data Grid in Sketchflow

I have created a simple master-details screen using two DataGrids in SketchFlow, but have been unable to have the child DataGrid update when a row is selected in the master DataGrid. The strange thing is, it works perfectly fine if the child is a ListBox rather than a DataGrid. I have used Blend to create some hierarchical sample data l...

RelativeSource binding to a parent property of a ComboBox SelectedItem return object

Hey all, Given the data structure { Collection elements; String LocationName; } And a ComboBox that is bound to a collection of such items (described in the structure) with DisplayMemberPath set to LocationName, how do I bind a datagrid to the SelectedItem.Elements of said combo box in XAML? By my understanding the SelectedI...

Using Silverlight User Controls and Styles from separate Project

I have a 2 silverlight projects Dashboard (the main app) Dashboard.Controls (user controls) I have a UserControl in Dashboard.Controls called header which has a grid that references a style <Grid Background="{StaticResource HeaderBackground}" Height="55">...</Grid> I had declared this style in the Dashboard App.xaml (via a resour...

Getting a DependencyProperty by name in Silverlight. How to...?

Situation: I have a string that represents the name of a DependencyProperty of a TextBox in Silverlight. For example: "TextProperty". I need to get a reference to the actual TextProperty of the TextBox, which is a DependencyProperty. Question: how do I get a reference to a DependencyProperty (in C#) if all I got is the name of the prope...

Silverlight 3: iteration order of in generic Dictionary using foreach KeyValuePair

In Silverlight3, when a generic Dictionary is iterated with foreach and a KeyValuePair, is the iteration guaranteed to visit the items in the dictionary in the order in which the items were added? That is, the iteration sequence has nothing to do with the key's datatype or its value? The documentation is less than explicit on this: This...

Adding service reference (inside a Silverlight class library) of a WCF service that uses business objects from a referenced libarary creates a proxy without the service client.

Hi All, I have a typical setup. The solution contains a regular .NET class library for business objects, A WCF project, a silverlight project and supporting web-app project, and some silverlight class libraries. The classes in my business class library are all marked with the "[serializable]" attribute. The WCF service has a method that...

Controlling TabNavigation inside a Panel.

Hi, I'm making layout control deriving from Panel in Siverlight. I want to be able to set the tabbing behavior inside my panel. What I need is something like TabNavigation property of the Control class. For example, if I set: myCustomPanel.TabNavigation = KeyboardNavigationMode.Cycle tabbing will move the focus only through the childr...

How to detect when connection to server is closed in silverlight 3

I have a Silverlight 3 application. It accesses WCF services that run on IIS. If I let the application sit for a while with no activity, it appears that I lose my connection to the server/login authentication, and my service calls fail. It would appear that I am being logged out for security purposes, but this is not an area that I ...

Silverlight databinding with IronPython and Datagrid

We've been successfully using clrtype with IronPython 2.6 and Silverlight for databinding, based on the example provided by Lukás(: http://gui-at.blogspot.com/2009/11/inotifypropertychanged-and-databinding.html We create the binding when we create the datagrid columns programatically. Because we are using IronPython some of the static...

How to call operations other than CRUD in RIA Domain Service?

I have some trouble getting my head around how to implement more complex operations in a Domain Service in RIA Services. This is all Silverlight 4, VS 2010 and .Net Framework 4 in Beta 2. Goal I wish I could create an operation on my LinqToEntitiesDomainService that would have a signature something like this: public UnwieldyOperation...

ItemsControl MVVM Binding

I have a form that binds to an ViewModel (MVVM). Inside the form I have an ItemsControl that is bound to an element called projects in my DataContext. When I do a save using a command pattern I save the item and do a retrieve then I want to rebind the ItemsControl to the Projects collection. This part doesn't seem to be working, all m...

Is the current Silverlight 4 beta supported on Visual Studio 2010 RC?

As probably everyone knows, MS just released the RC for Visual Studio 2010 (http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx). I'm about to download and install it, but I need to know if the current Silverlight 4 beta bits are supported. Anyone happen to know, or know differently? (If I don't get an answer, I'll post my results b...

Problem with binding in converter in silverlight custom control

Hi, i got some xaml here and what i m trying to do it's simply bind a property call Property (not the real name) on the width of a rectangle and to convert the value of this property with the converter name Conv and it's working perfectly with {TemplateBinding Property} or DataContext={TemplateBinding Property} or with a relative source ...

resolution issue in silverlight

HI, i need to have a resolution independant UI in silverlight application. Will it support implicitly or should it be taken care in code behind doing ScaleTransform ? will it support multiple browsers as well ? Thanks in advance. ...