silverlight-3.0

Silverlight 3.0 and MVVM Pattern

hi, i am working on this article here they are using Silverlight 4. link text but i am using Silverlight 3.but for button we are not able to find the command Command="{Binding Path=DataContext.GetPerson, ElementName= LayoutRoot }" <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="53,112,0,0" Name="butt...

How to do validation on both client and server side for a service which is a store procedure(return a complex type)

Hi I am doing Silverlight 4 In my database, I have a store procedure(having two parameters) which returns rows (with extra fields). So i have to make a complex type for those rows on my Models. And Making a service to call that function import store procedure. The RIA will automatically create a matching Entity(to the complex type) an...

Is it possible to see silverlight based pages without the silverlight plug in

I have an asp.net application in which I have built few silverlight based pages. The problem is that most of our users do not have install priviledges on their system and they cannot install Silverlight plug-in themselves. Our IT Support will not agree installing Silverlight on all 4000 machines. Is their something we can do so that us...

Silverlight application with binary xml

My silverlight + ASP.NET MVC application does the following: 1) Silverlight client sends request via HttpWebRequest. 2) ASP.NET MVC connects to a SQL Server database (stored procedure) and gets back XML data It then sends that raw xml to the client (no web services or WCF). 3) Silverlight client receives xml and deserializes it wit...

Silverlight authentication and ICredential

Hi I've setup up a WCF web service to handle requests from a Silverlight application. That service has Windows authentication set up which works well with the following endpoint configuration <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="Test.Service.ServiceBehavior"> <serviceMetadata...

Getting error publishing Silverlight 3 app on IIS 6 \ Windows 2003

I get the error below when I'm publishing a Silverlight 3 app on a IIS 6 \ Windows 2003 box. The app is just a vs08>file>new project>Silverlight App with the mainpage having one textblock that says "TEST". I get this error when I'm in IE only, but Firefox, Chrome just show nothing (no error and no app). The error is a bit confusing...

How keep drop down opened in silverlights ComboBox?

Hi all. I use ComboBox control as popup. Item for my ComboBox is Grid. There is TreeView control and two Buttons in grid. Items of TreeView are CheckBoxes. When I click on Buttons or CheckBoxes drop down keeps opened, but when I click on other part of grid drop down i closed. Is there any way to keep it opened until I click outside of Co...

Splitting silverlight app into pieces

We have an compiled silverlight application which is a pack of control that are used in different parts of web site. Does it make sense splitting this big application into several pieces, so as to reduce, let's say, initialization time of a single control from the pack, or maybe performance will benefit in some other way? If it does, wha...

How can I access the textbox value which is embeded inside a Silverlight(3.0) Grid?

I have a Silverlight DataGrid control inside which I have a textbox and a button control. It is as under <dg:DataGrid x:Name="myGrid" AutoGenerateColumns="False"> <dg:DataGrid.Columns> <dg:DataGridTemplateColumn Header="Name" Width="100"> <dg:DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBox Text="{Bin...

how to dynamically change image source in a silverlight for windows phone 7 project?

Hi, I'm working on a windows phone 7 project, with silverlight, and i'm trying to show 4 images in sequence to give the user the feeling of a short movie. I have 4 urls pointing to 4 different jpeg images, and I'm using an Image control to show these jpeg in sequence. The way I'm trying to achieve this is by doing: private void Retrie...

Multiple Controls Alignment dynamically in Silverlight

HI ALL I'm a beginner in SilverLight.I have three controls in a canvas which are dynamically created.I want to align the Controls like in Visual Studio(Left Align,Right Align, Center Align) dynamically. I want to know whether i can select a control dynamically? I want to know whether i can select a Multiple control ? Whether there ...

Silverlight app not loading on production server

Hi New to Silverlight, I have an app that I am trying to test. Works fine on DEV machine, when I upload to the server, no errors are returned, but no app either. I have uploaded: TestMySilverlightApp.aspx ClientBin/MySilverlightApp.xap silverlight.js Have I missed something? Many thanks EDIT: Firebug tells me that I have a 404 ...

Silverlight Binding properties of a UIElement to properties of another UIElement dynamically

A list of ellipses and lines are added as Children to LayoutRoot. Lines are connecting between ellipses. How to bind these two elements together so that when ellipse moves lines should also move. How to bind the X1property,X2property,Y1property,Y2property to center of ellipses. ...

Project Types in SilverLight VS2010

HI ALL, Can anyone explain in brief, What are all the various Project Types in SilverLight VS2010 Thanks Kishh ...

how to wrap the Ienumerable into something that can make the Gridview have Insert/Delete row function

Hi, right now i try to implement the Inheritance property of the Entity Framework. I have two table in the database : DocumentLine and DocumentLineBudget. in EF designer, I will make the DocumentLine as a base class. The DocumentLineBudget as a derived class from the DocumentLine. Because of the Inheritance, there will have no availabil...

How do I display Custom Error Message in MediaElement

When MediaElement is unable to play a media file then it displays the error "Could not open mediaFile someFile.avi". Can we customize this Error message or display a link instead of message so when user clicks on it will be redirected to player site. Edit: I am creating custom MediaPlayer and updating the requirement onApplyTemplate as...

Calling WCF in SilverLight compoment

The following code throws an exception which I have no idea what goes wrong , can anyone shed some light on this one please? RestAPIDataContext ctx = GetContext(); var songsQuery = (from item in ctx.Songs where item.Artist.Title == "George Michael" select...

KEYDOWN EVENT in silverlight shows dX or NumPadX instead of numbers

I tried the following in Silverlight 3.0 and browsed in Mozilla firefox 3.5 //code to display the key down private void comboBox1_KeyDown(object sender, KeyEventArgs e) { button1.Content = e.Key.ToString(); } When number keys are pressed, I get a response like D1, D2..... When numpad keys are pressed, I g...

Silverlight - How should I implement drag in canvas?

I am building a little app for the Windows Phone 7 (Silverlight 3) which allows the user to add objects to the screen and drag them around. My class is defined as the following: public class Frame { public double Height{ get; set; } public double Width { get; set; } public Uri Image { get; set; } pub...

Unwanted horizontal browser scroll bar displayed using IE8.

I have a situation with our silverlight 3 application where the initial load of the main application page shows the browsers horizontal scroll bar. The width and height of the silverlight control are such that I should get a vertical scroll bar (which I do) and no horizontal scroll bar. We have a BrowserScrollHelper class that is being...