silverlight

Facebook Game Development - .NET - Which architecture?

I am starting to develop a facebook game using ASP.NET + Silverlight Which architecture would you use? ASP.NET MVC or MVVM or RIA Services? ALso what do you think about using XNA with Silversprite? The game won't be a arcade game. It will be more strategy/RPG. Thanks a lot in advance. ...

Access Controls in Silverlight DataGrid Column Header from Code

We have custom headers in the Silverlight DataGrid using the ContentTemplate. We've got a button in the header and need to programmatically access the button to hook up the event. We're using IronPython, so we can't statically bind the event in the xaml (plus we use the grid for many different views - so we dynamically generate the xaml)...

Silverlight UserControl with rectangle as a button

Hi, I have a problem using custom made UserControl in Silverlight Page. The UserControl is generally a rectangle containing a smaller rectangle inside. I want to use the UControl in a Silverlight MainSite. i've implemented a method on mouse button down for a smaller rectangle called in here Button1: public void Button1_MouseLeftButtonD...

Binding "Text-Property" of a derived textbox to another textbox doesn´t work

Hello, i have a class 'MyTextBox' that derives from the default TextBox in Silverlight. This class currently contains no additional code. I set up a binding in xaml to bind the Text-Property of MyTextbox to another Textbox to reflect the input made in the Textbox. The effect is that MyTextBox doesn´t update and not display the text of...

Silverlight Selecting text with doubleclick

In a standard text box, say ASP.Ne if you have say a order number, something along the lines of this => 177-1111 if you double click on any of the first 3 chars '177' then '177' is selected, and you can then Copy that using Ctrl+C if you double click on any of the '1111' chars, it selects only 1111. In Silverlight, using a textbox, an...

Silverlight - DataTable

Hello, I have a need to basically create a matrix of values in my Silverlight 3 application. Is there anything equivalent to a DataTable that I could store a matrix of values within? Thank you, ...

Select the Initial Text in a Silverlight TextBox

I am trying to figure out the best way to select all the text in a TextBox the first time the control is loaded. I am using the MVVM pattern, so I am using two-way binding for the Text property of the TextBox to a string on my ViewModel. I am using this TextBox to "rename" something that already has a name, so I would like to select the ...

How to run batched WCF service calls in Silverlight BackgroundWorker

Is there any existing plumbing to run WCF calls in batches in a BackgroundWorker? Obviously since all Silverlight WCF calls are async - if I run them all in a backgroundworker they will all return instantly. I just don't want to implement a nasty hack if theres a nice way to run service calls and collect the results. Doesnt matter wh...

Jeopardy template for Silverlight

I am supposed to be making a jeopardy game for my class. I was wondering it there is a template for it already out? Or do I have to make one myself, in which case, what would be the best approach to making this game in Silverlight? (My last resort is to make it in PowerPoint) ...

Silverlight 4.0 PDF Viewer

Any free control to view PDF for Silverlight? or how to view pdf in silverlight from memory stream? ...

Binding from View-Model to View-Model of a child User Control in Silverlight? 2 sources - 1 target..

Hi there, So i have a UserControl for one of my Views and have another 'child' UserControl inside that. The outer 'parent' UserControl has a Collection on its View-Model and a Grid control on it to display a list of Items. I want to place another UserControl inside this UserControl to display a form representing the details of one I...

DataForm commit button is not enabled when data changed.

This is a weird problem. I am using a dataform, and when I edit the data the save button is enabled, but the cancel button is not. After looking around a bit I have found that I have to implement the IEditableObject in order to cancel an edit. Great I did that (and it all works), but now the commit button (Save) is grayed out, lol. ...

property names are different from original Object in the silverlight

Following is part of service layer which is provided by WCF service : [Serializable] public class WaitInfo { private string roomName; private string pName; private string tagNo; public string RoomName { get { return roomName; } set { this.roomName = value; } } public string PName { get { return...

How do you align text so it is in the middle of a button in Silverlight?

Here is the current code I am using: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="ButtonPrototype.MainPage" Width="640" Height="480"> <UserControl.Resources> <ControlTemplate x:Key="CellTemplate" TargetType="Butt...

Vertical scrolling in silverlight

I have a silverlight application that is set to use 100% browser height. As I dynamically add controls to a canvas (which can be dragged around), I would like the expand the canvas vertically. Ideally show the browser scrollbar so the user can move up or down, if that can't be done, use the scrollbar control. I would also need to han...

Rightclick event on main page of Silverlight 3 application?

Hi , I want to trigger an event when user Right-click on the page, let's say I want to navigate to another page on Rightclick down event. Can any one help on this please? ...

While porting a windows application to web, is it better to stick to conventional web technologies or adoping RIA is wise?

Hello. The web based application I am working on currently is a port from a windows application. This application is very data intensive. There are scores of modules and each of these modules have number of forms (data entry screens) and reports whereas the forms have many many fields and likewise the reports. I have been trying to iden...

Multitasking and Multithreading in silverlight

I have a silverlight application in which i have multiple requests that goes to the server.I want that all these request to be synchronized i.e by means of queue or by means of multitasking.What is the best mean of doing so.Plz provide some example in silverlight where io could do so. ...

Silverlight AGData Grid

Hi I am developing the application in Silverlight.We are using the AGGrid. We have the following scenario AGDataGrid displaying the list of provider name .It is have the Checkbox column ViewingAccess. I have to retrieve the list of checkbox checked rows from grid .Please explain how to acheive Thanks Sekar ...

How to convert this code-based WPF tooltip to Silverlight?

The following ToolTip code works in WPF. I'm trying to get it to work in Silverlight. But it gives me these errors: TextBlock does not contain a definition for ToolTip. Cursors does not contain a definition for Help. ToolTipService does not contain a definition for SetInitialShowDelay. How can I get this to work in Silverlight? usi...