silverlight-4.0

Selecting path to a folder in my computer (as in OpenFileDialog but without filename) in Silverlight 4

I have seen OpenFileDialog and SaveFileDialog in silverlight but, what if I required to select path of folder in my computer? Scenario: The user want to select path in the Computer which he can use for his files. For example there is a button (e.g. Select path to save your work button) which he will use to browse folder. When he is done...

silverlight datagrid multicontrol TemplateColumn TabIndex issue

In SL4 DataGrid I have the following multicontrol column: <sdk:DataGridTemplateColumn Header="Address Line1&#x0a;Address Line 2" MinWidth="200"> <sdk:DataGridTemplateColumn.CellTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Path=Address1}"/> <TextBlock Text="{Binding Path=Address2}"/> <...

Unresolved lambda expression in Re#

I can't figure out what Re# is complaining about with a piece of code. Everything compiles ok and works as it should, but Re# can't seem to resolve the expression without offering any suggestions. Look at the attachment for code and error. Any offers? ...

Event that fires after element is resized.

Here is a problem: after loading some visual elements, I need to change something knowing their new sizes. There is MeasureOverride method, but it is called before changing the size. Is there any method that is called after it? P.S. I know that I can calculate new sizes having old ones, but new sizes aren't calculated simply. It would b...

Silverlight, WPF or Windows Forms?

I need to create a desktop application for Windows and I'm in doubt about which technology to choose. Fact is that the application must do interaction with local resources: Communication with SQL (need support for SQLite and MSSQL - local and remote, and would love to use NHibernate; maybe even with Castle's ActiveRecord) Interaction ...

Silverlight XAML: Binding to property in EntityClass from assosiated EntityCollection (advanced?!)

This question relates to this question. I have a EF model like this. Using Silverlight 4 I have an application showing questions to the user, defined through the QuestionSet. If a question has more than one answer alternative, a ComboBox is rendered. If only one alternative is given, a TextBox is rendered, in which the user can put fre...

Silverlight TreeView in ComboBox (or just a custom dropdown control)

Hi I was wondering if I can have a ComboxBox with a Treeview as the selector rather than a list? I note that there is a ComboBox.ItemsPanelTemplate, but I don't know what I need to do to get this to work? I could build a control 'from the ground-up' with a separate TextBox, Button and TreeView in a PopUp control, but wondered if there...

Require an old version of silverlight

We're using a combination of Silverlight 4, .net 4 and VS2010 for several internal projects. When building a project, we're not manually specifying the build of silverlight that we require anywhere other than in the page that gets auto-generated. We're having problems with the clients requiring the absolute latest build of silverlight t...

How to programatically detect if a DataForm is in edit mode

I'm using a DataForm in Silverlight 4. Several DataForms, actually, and they share a common RIA Services context. Here's the problem I'm having... If I start editing a DataField in one of the DataForms, then click on a button that calls Context.SubmitChanges(), I get the following error: �Entity 'foo' is currently being edited and ...

How to notify object from which a method has been called

I'm trying to make a simple class for my REST calls so I won't have the same code in multiple places in my application. The problem is, I don't know how to notify an object that called the UploadStringAsync() method from inside the UploadStringCompleted() event handler. Here is my class, I have added comments to mark the place where I ...

Does Silverlight cache web service calls?

Here's the problemo: My Silverlight application is calling a HTTP web service, using WebClient, called getCampaigns which returns a JSON array of data for Campaign objects. The user can then interact with the requested objects, modifying them, removing them, etc. When the user removes a campaign, Silverlight calls another web service, w...

Where does the navigation logic belong, View, ViewModel, or elsewhere?

I a button in a view, bound to an ICommand property of the ViewModel (actually it's RelayCommand from mvvv-light) If the user clicks on the button I want to navigate to a new view. Of course the NavigationService is part of the View not the ViewModel. That implies that the navigation is the responsibility of the View? But in my case,...

How to customize registration page for silverlight business application?

When you create a silverlight 4 business application, using VS2010, by default you will get a login and registration page. I need to customize the registration page, to add more fields. How do I do that? Thanks in advance. ...

Printing async data from Silverlight 4

I have a bit of a chicken-and-egg problem here... I want to print map data that is retrieved asynchronously from a web service. The problem is I don't know the selected paper size (which affects the size of the map I need to request from the service) until the user presses OK on the print dialog and the PrintPage event is fired. The o...

Error with SL4 RIA when returning less than 2 items

Hi there, I dont know what I have done wrong but whenever my service model is returning less than 2 results I am getting an error. I have asked on the silverlight forum with no joy. System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetEmployees'. Unexpected end of file. Following eleme...

How to stop Silverlight upgrading between point release automatically

I have a Silverlight application. The application was compiled with version 4.0.x. Today the application has told me that we need to upgrade to a newer version of 4.0. We don’t want to upgrade to the newer version as we will need to do it on all our client machines. Is there any way we can get our application to use the older version of ...

How do I get the generated proxy class of a WCF service to implement INotifyPropertyChanged

Is it possible to have the proxy classes that are generated when setting a service reference implement INotifyPropertyChanged? In this case it's a silverlight app referencing a WCF service? Update: The SlSvcUtil.exe commandline utility is part of the silverlight SDK installed {Program Files}\Microsoft SDKs\Silverlight\v4.0\Tools will ...

RIA Services why does VS 2010 not generate an App.config when there is no EF model?

We always generate our RIA services as a "WCF RIA Services Class Library". When we generated one for POCO, without first adding an EF model, we noticed the App.config was not generated. After testing we found the settings are only added to App.config if the App.config file already exists in the project. Is this just a bug in VS 2010?...

How to make use of RIA Services App.config files (without copying settings to web.config)

Even though I link my web-app with my RIA Services.web library, the App.config setting files are never used and I always need to copy the module settings manually to my web.config. Am I doing something wrong? Should the App.config file be recognised and automatically loaded? ...

How to display array of images in Silverlight ComboBox?

I have array of objects with created images (Object.Image), i want to show images in combobox. <ComboBox x:Name="typeSelection" ItemsSource="..." DisplayMemberPath="Image"></ComboBox> Combobox shows Image.ToString(), not image itself, how to fix it. ...