silverlight-4.0

Binding to multple datasources in Silverlight with String.Format

Hi, I am trying to bind a label 2 (or more!) fields in a dataset in Silverlight 4. I get a localized string out of a resource file and do a String.Format on it like so: <TextBlock Name="lblTotals" Text="{Binding TotalItems, StringFormat='You need \{0\} items and \{1\} products.'}" /> This works fine with 1 item but there's no way of ...

Can copy HTML formatted text from clipboard in silverlight ?

I need to access clipboard in silverlight. in winform apllication: textBox1.Text = Clipboard.GetText(TextDataFormat.Html); but, in silverlight I can only get text textBlock1.Text = Clipboard.GetText(); How can I get the html format of the clipboard ? ...

why doesn't a polyline redraw when I change its Points collection to reference a different collection?

Hi, I'm still fairly new to silverlight, so hopefully this is an elementary question: I have a polyline whose 'Points' (type: PointsCollection) property is bound to a PointsCollection public member, Pts, in my view model class. When I add/remove points from ViewModel.Pts, the polyline redraws correctly without any problem. However, if...

datapager error in siliverligh 4

I have used datagrid in silverlight 4 and datapager. It is working fine. I have 15 records in my table. Both control datagrid and datapager are bound to DomianDataSource control of riacontrol. I have mentioned LoadSize=20 and PageSize=5 . This setting is perfectly working. But when I change LoadSize=10 and PageSize=5 . In this case, firs...

Code error 2104 after moving aspx page to some folder.

Hi guys, I get the following error after moving aspx page to some folder. Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings Environment: Win7 x64, VS2010, SL 4.0.50524.0, IE8, IIS7.5 Steps to reprod...

Expression Blend 4 Right to Left Issue

Hi, guys. I have recently installed Expression Blend 4 and created a test Silverlight 4 project. When I set the main page FlowDirection to RightToLeft the designer won't change the direction but if I run the application it will be displayed correctly. Is this a bug or do I have to do something? Thanks. ...

Why use a "RIA Services Link" instead of just an OData endpoint?

Before reading, please know I've read all the other posts about the differences between vanilla WCF, WCF Data Services and RIA Services. My question is specifically about why RIA Services is being considered as a special kind of data source specifically for Silverlight when it seems to make more sense to just have it do one job: serve as...

Silverlight ItemsControl no parent object?

When using the itemsControl it does not set the parent for any child control created in the DataTemplate section. Which makes it impossible for the Zorder to have any real meaning. I'm basically creating a custom tab control, but the following line does not actully set the zorder becuase I guess it has no real reference to any other co...

dont work eventAggregator in silverlight between two module

hi, i have a prism silverlight app that for communication between views i used eventAgregator. my problem is when i use eventAgregator between two view in single module that work. but when i use that between two views in two moduls that dont work. what is problem. ...

Simple silverlight sample does not show my data on datagrid.

I have a simple program which displays a collection on a data grid. When I run the code I do not see grid displaying data. The model is public class Person { public string Name; public int Age; public bool Sex; } The view model is public class PeopleViewModel:INotifyPropertyChanged { List<Person> _personList; ...

Why are the InitParams I pass into Silverlight always empty?

My Silverlight application needs one parameter, an integer. In my Html, I have written: <param name="InitParameters" value="UserId=1" /> In code I am reading the parameters in: foreach (KeyValuePair<string, string> pair in e.InitParams) { Resources.Add(pair.Key, pair.Value); } e.InitParams is always empty. Any ideas? ...

Silverlight Business Application / RIA Services

When using WCF RIA Services, there are a couple of ways of to handle data. One suggested way is by using the DataForm object. Another way is by using the auto generated controls when dragging from the datasource onto the design surface. Many other ways I suppose are possible. With all these options, my question then is: What is the BEST ...

Windows phone 7 config / appSettings?

Is there a way to add a config file for WP7 apps like there is for Windows apps and web apps? I just need an easy way to save a few settings I'd rather not create my own object and have to serialize/deserialize an xml file. There doesn't seem to by any kind of item template that I can add to my project so just wondering if anyone has don...

How to get selected value of GridViewComboBoxColumn?

I am using RadGridView in my silverlight application. I want selected value of GridViewComboBoxColumn. But there is no property called selected value. so how to get selected value? ...

Combining SQL Server Reporting Services with Silverlight

Is it possible embed Silverlight content within SSRS ? (Like an image I would like to use a Silverlight viewer to show the content in the SSRS report). ...

Problem with GridSplitter not resizing content

Hi, First off I'm new to XAML so forgive me if I've done something stupid. I have stripped down my page to the following example XAML (viewable in XamlPad): <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xam...

DataSet in SilverLight 4

Dataset is not available while using silverlight 4. I added System.Windows.Data but i cant use Dataset. whether i have to add anyother Files? anybody help me plz... ...

How does EntityState, HasChanges, HasPropertyChanges work on Partial Classes ?

Hi, I have a class coming from EntityFramework which I have extended with a few properties in a partial class. I expose and edit the values of these properties in my interface and everything works fine. But, I want to detect the change of value in the properties in my ViewModel, and while investigating the EntityState, HasChanges, HasPr...

How to launch moonlight control out of browser

Hi. I've created Silverlight 4 control using visual studio and now I'm trying to launch it out of browser using moonlight (os openSuse 11.2). I've installed moonlight 2.99.0.7. On "Advanced" tab of moonlight configuration I've found checkbox "use firefox to execute out-of-browser application". But even after checking it's still impossib...

Sharepoint 2010 Client Object Model Remote Access via HTTPS

Hi there, I was encouraged to learn that the Sharepoint 2010 Client Object Model essentially wraps remote calls to the server. So, I copied the Microsoft.Sharepoint.Client.Silverlight.dll and Microsoft.Sharepoint.Client.Silverlight.Runtime.dll from my Sharepoint 2010 server to my development machine (without Sharepoint). I assumed the ...