silverlight-4.0

Silverlight Web App MVVM

Hi, I am trying to create a multiple user control silverlight application with MVVM pattern. Here is sample of my first page User control <Grid x:Name="LayoutRoot" Background="GhostWhite" > <Grid.ColumnDefinitions> <ColumnDefinition Width="100" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Bor...

3D chart in silverlight4

how to create 3D pie chart using silverlight 4 toolkit ...

Silverlight MVVM Combobox Binding getting broken

I have a combo box defined as such <ComboBox Name="RoomDropDown" Visibility="{Binding Path=RoomDropDownVisible,Mode=OneWay,Converter={StaticResource BoolVisibilityConvertor}}" ItemsSource="{Binding Path=RoomList,Mode=OneWay}" DisplayMemberPath="display" SelectedValuePath="display" SelectedValue="{Binding Path=R...

How to read xml file from a relative path in RIA Service?

Hi, I am trying to read an XML file in RIA Service and I am getting the following error. Load operation failed for query 'GetSummaryList'. Could not find a part of the path 'C:\WINDOWS\SYSTEM32\CoreResources\SumaryListDS.xml'. I am using Silverlight 4 which is using RIA service. I am trying to read the SumaryListDS.xml located in the ...

Is it possible to dynamically choose which Control to render based on bindable attribute in Silverlight 4?

I have a ListBox with an ItemTemplate which renders a Grid with two columns. The first column is a TextBlock and the second is a ComboBox. The idea is to present to the user a list of questions and a Combo from which the user can choose an answer. This works ok with this xaml: <ListBox x:Name="QAListBox" ScrollViewer.VerticalS...

XAP Caching in Out of Browser (OOB) Silverlight Applications

When a Silverlight 4 application is installed and run out-of-browser (OOB), is it possible to have the application automatically recognize updates to the .xap file (and either automatically install or prompt the user to update)? If you access the application from it's original web URL, you are automatically given the latest & greatest (...

Silverlight 4 PagedCollectionView with Multiple Filters

Hello, I'm new to Silverlight 4 and the PagedCollectionView. I know it's possible to add a filter to a PCV such as pvc.Filter = new Predicate(FilterProjectId); Where pvc is a populated PagedCollectionView. What I need to do is stack multiple filters to a PCV as I've got a search screen with about 6 fields on it and a DataGrid that...

Silverlight printing busy\progress bar.

I'm using Silverlight 4 to print but I would like some sort of progress bar or busy indicator. I've tried to using a progress bar but it is not really working. The 2 issues I have are: the progress bar does not indicate progress, I have IsIndeterminate=True, but it does not animate when printing starts (Print dialog's Print button is...

How to interact with sites in wp7?

I need to send and receive get post requests ...

Silver light web part could not be displayed while using it with ADO.NET service in SharePoint 2010

Hello Everybody, I have created a silver light application which leverages the ADO.NET Data Services in SharePoint 2010 and trying to achieve the CRUD functionality through ADO.NET data service. For that I have added service reference by specifying URL as http://:1111/_vti_bin/listdata.svc to my silver light application in visual 2010. ...

Binding in PrepareContainerForItemOverride method.

Hi! I try to implement PrepareContainerForItemOverride method of ItemsControl. It will put items to TextBox. It works nice, but how can I binding an item to the textbox text property? One way mode works nice, but when I want two way mode, I have to know the path. Here is my code: protected override void PrepareContainerForItemOverride...

What is the best easing function to simulate a GUI item dropping?

There are so many easing functions available in Expression Blend, and so many settings on each, it is often hard to know instinctively what easing function to choose. Trying all the options would take quite a long time. In this instance, I want to give the impression that the item has fallen forward and down. I am using a projection rot...

Silverlight: How to do data entry to a collection?

I have an app for tracking expenses. Users add new expenses through a form. Expenses are kept in a collection. I'm new to Silverlight, and not sure exactly what the best way to set up my app is. Currently, I have a DataGrid with columns that I've defined to format the members of the ICollection nicely. In the code behind, I've specified...

Talking to a usb device when RIA app is installed locally - easier in silverlight or flex ?

I'm creating a program that needs to communicate with a usb device when installed on the desktop, but doesn't need to access the device when running in the browser. Hopefully this would remove the need for doing any browser-dependent extensions/hacks to work. Would silverlight 4 let me call a native process to do this (presumably via CO...

How to clone Silverlight visual tree structure

I have the same problem as the question stated in "Printing in Silverlight 4". To get around the problem, I have tried to scale transform root of my visual tree before printing. void document_PrintPage(object sender, PrintPageEventArgs e) { var renderScale = 1.0D; if (LayoutRoot.ActualWidth > e.PrintableArea.Wid...

How to display HTML in Silverlight application?

Hello, I would need to display some basic HTML (just some paragraphs, unordered lists and hyperlinks) in my Silverlight application. How would I go about that? Which control to use? ...

IE ToolBar using SilverLight

Is there any way to create IE ToolBar using SilverLight only (i.e. without using VC++/ATL). like Bing bar Tool bar from microsoft. thanks in advance ...

Can a DomainService return a single custom type?

I would like a method on my in my domain service similar to: public SystemState GetSystemStatus() { return new SystemStatus { InterestingStatusValue1 = 1223, OtherInterstingStatusValue = "abc", } } That doesn't work. Nothing is auto-generated for the Silverlight client app. Howerver if I make this an IQue...

UploadStringAsync not working

Hello, I'm trying to send a POST request to a PHP script ("http://mywebsite/index/test/" in this case) once a button is clicked. I am using the WebClient's method UploadStringAsync for that but it doesn't seem to work: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System...

INotifyDataErrorInfo ArgumentOutOfRangeException when raising ErrorsChanged event

This is a wierd one and at this point I am thinking that it may have something to do with my machines configuration. Basically I have created a pretty standard implementation of INotifyDataErrorInfo and in certain circumstances, when raising the ErrorsChanged event I get an ArgumentOutOfRangeException. This exception doesn't contain muc...