silverlight-3.0

Can you set http headers when using HttpRequest object in Silverlight?

I'm having trouble setting any HTTP header values when making a HttpRequest from Silverlight 3.0? Are HTTP Headers supported in Silverlight 3.0? The following code throws an exception when the request callback is called: var url = new Uri("http://lonmw32795/RBSM_Portal_RESTfulWebService/HostInterrogationService.svc/host/enviro...

Silverlight mouse left button down issue

Hi, In a Silverlight 3 project I am using mouse left button down event on a border control but found out that the event is raised even when I click the button slightly outside the border like 5-10 pixels. Has anyone faced this issue before? Thanks in anticipation! Following is the XAML in which we are capturing the event of brdSelect...

Does Silverlight support setting a proxy for http requests?

Is it possible in Silverlight 3 to set a proxy url for http requests? I want to make a request outside of local network (intranet) and need to set a proxy to do this. ...

Setting the colour scheme for a Silverlight app from an external resource

I have a Silverlight 3 application containing six custom user controls. I'd like to load the colour scheme for these controls from an external resource. The code and XAML containing a default colour scheme would be built in the XAP. Then a parameter on the object tag would contain a URL from where alternate colours can be dynamically lo...

Problem sharing domain model between WCF and Silverlight Project

Hey there, I am writing a Large Scale Silverlight Application. I am currently writing the data retrieval elements. I have now encoutered and issue. I have a common Project that hold objects, this project is referenced by both the UI and the WCF service. The UI requires INotifyPropertyChanged for binding purposes. Now the WCF must us...

Hosting Silverlight xap file, only white screen displayed...

I have a SL 3.0 xap I want to host in a ASP.NET website, I have access to the XAP file and I have created a HTML page to host the SL component. When I access the page all I see is a white screen where the SL component should be, SL is loaded but the component is not displayed. Any ideas why this is happening? This is the HTML code for...

TreeView selection problem in Silverlight 3

I have a TreeView control from System.Windows.Controls on MainPage. <controls:TreeView x:Name="Tree" SelectedItemChanged="Tree_SelectedItemChanged" /> MainPage ctor looks like this: public MainPage() { InitializeComponent(); for (int i = 0; i < 10; ++i) Tree.Items.Add(new TreeViewI...

How to rollback changes made to a object in silverlight 3 with a TwoWay binding

I have a Silverlight 3 project. I have a textbox that is TwoWay data bound to an object. If the user wants to cancel the changes that they made to the textbox, what is the best way to undo the changes to the bound field on the object? I know I could store the initial value in a separte variable when the object is loaded, but I was won...

Debugging the loading & activation of Silverlight components

Is there anyway to get detailed debugging information when a Silverlight component is loaded into a web page via an XAP file? I'm not talking about adding debug statements in the Silverlight component but from the host environment (web browser). Cheers AWC ...

How to retrieve TextBlock from DataGridColumnHeader HeaderStyle in Silverlight

As in Silverlight I can't bind directly to a DataGridColumn's property, in order to dynamically change the text of the column header, I have to write the following code using HeaderStyle. <data:DataGridTextColumn.HeaderStyle> <Style TargetType="dataprimitives:DataGridColumnHead...

design pattern for food ordering app in silverlight 3.0

All, Are there any design patterns that I can use for an food ordering application? I intend to use silverlight 3.0 with .net, c# The concept of operations is as follows: application presents the menu (pictures and text) on the screen. patron selects what they want. For example, burger, fries and a coke. application will show the or...

Can not Resolve symbol WrapPanel in Silverlight 3

I am just a beginner in Silverlight, here is the XAML code. I have added reference to System.Windows.Controls, still it is saying that "Can not resolve symbol WrapPanel". <UserControl x:Class="HelloWorld.MainPage" xmlns:controls ="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns="http://schemas.micro...

Adding Prism Module as Silverlight class library

Hi all, I'm building a silverlight project based on the Prism 2.1 version. Added a shell Added a silverlight class library (Module A) Added a reference of module A to the shell Added ModuleA in the bootstrapper to the Prism ModuleCataloge Every thing is ok . I wanted to make loading the Modules by XAML file. - Added ModulesCatalo...

Silverlight, DataPager, RIA Services, and smart paging

I'm still trying to get my feet on the ground with Silverlight and RIA Services, and of course starting with some of the more "fun" stuff like grids and intelligent paging. I can connect to RIA Services (using a home-grown ORM, not L2S or EF), get data on the grid, and connect to a DataPager. The domain service is working well with the h...

How to contain a TextBox w/i an Ellipse when resizing?

Hello, I am trying to lay out a TextBox w/i an Ellipse w/i a larger control. When the larger control is resized, the aspect of the Ellipse can change. How can I resize the TextBox to remain entirely w/i the Ellipse? <Grid> <Ellipse x:Name="tbEllipse" StrokeThickness="1" Stretch="Fill" Fill="White" Opacity="100" /> ...

Silveright calling javascript issue?

I'm calling out to javascript from a SL component using the HtmlPage.Window.Invoke api, when I call a javascript function defined in the page (html) it executes as expected, e.g. HtmlPage.Window.Invoke("publishValue", topic, jsonObject); But when I place the javascript function in a *.js file it is failing to execute the method even t...

Can I pass a JSON object from Silverlight to javascript

I know I can call javascript and pass string values from Silverlight, but can I pass a JSON object or does it have to be serialized? ...

How to set a property by calling a method

Hello, I'd like to know how to set a custom property of a custom user control by calling a method that would serve as "data provider" for that property. What I mean is I'd like to write something like this: <CatsUserControl Cats={FindAllCats} />, where CatsUserControl is a User Control I created (which has a Property named Cats), a...

Silverlight Expand/Collapse Toggle Image

I have a button which is inside a DataGridTemplateColumn, in which I am placing an Image. This image initializes to a minus "-" sign image, indicating that you can click on the image and collapse some of the rows below it. Here's my question: what is the best way to switch the image's Source to the plus.png image? XAML <data:DataGridTe...

How could I reenable Silverlight designer in VS2008?

Hello, I have a problem with Visual Studio 2008. When I installed vs2010 rc1 some strange error messages appeared when I opened a silverlight3 solution in vs2008, I told it not to show it again, but I remember it have some strange guid keys. I have reinstalled everything and it keep showing no silverlight designer when I open a xaml, b...