silverlight

Suggest a good book for Silverlight

Hi I have to develop a new project using Silverlight. I have downloaded demos and videos from MSDN. Can anyone suggest a good book for Silverlight? ...

Migrating asp .net 2.0 application latest .net version(design question)

Hi I have a web application built in the asp.net 2.0 MVC pattern. Now the clients want to update this application with rich UI experience and the latest .net technologies. Can anyone suggest whether I should use WPF or Silverlight: which one should I choose to change the application per the client requirement? I should be able to re...

Using Silverlight 3 to make a WPF Application cross platform (Windows + OS X)

Im writing a Twitter Client in C#/WPF/WCF. I(Windows) showed some of my friends(OS X) and they would also like to use it. Would it be worthwhile to convert the application into Silverlight 3 so that they would be able to run/install it on OS X? Will the full features of Silverlight 3 be supported on OS X (like the install feature), li...

What is the purpose of this method in the Silverlight SDK source code?

The following code snippet is from the Silverlight SDK and I am trying to understand the reason it is the way it is. Can anyone explain the need for the for loop? internal static DependencyObject GetVisualRoot(DependencyObject d) { DependencyObject root = d; for (; ; ) { Fr...

JavaFX, Flex and not default languages.

Can I write programs in JavaFx or Flex with other languages (not ActionScript and JavaFX Script) like in Silverlight? ...

problem in Silverlight publish

I have a silverlight 2.0 object on content of masterpage. i see it on local but can't see on the host after publishing. according to Microsoft blog i add 2 MIME type of xaml and xap but silverlight object doesn't appear. i can't see the content of silverlight object but i can configure silverlight by right click. please guide me. ...

Xaml Layout Resources for a Web Guy

Long story short: I've been layout out UI's with Html/CSS for about 8 years now. Recently I've been dipping into Xaml/Silverlight/Wpf and really struggling with designing a UI using Xaml. I understand the basics of the Silverlight Layout Model and feel smi comfortable with using StackPanel and Grids but I'm just not picking it up as fa...

Handling Silverlight onerror callback

The silverlight object tag accept an 'onerror' parameter which calls back to a piece og javascript of your choice. The default implementation the is generated by the Visual Studio template assembles a descriptive message and throw it as an Error (which lets e.g. IE display the little warning triangle). It seems to me that each time this...

SilverLight file upload?

I would like to upload file from the client to the server with a Front End in SilverLight. My problem is that the file is NOT in the isolation storage (that would be easy!). The application in few word require to upload images from the user computer similar to the file uploaded FaceBook, (the Java version). Is there a way to grant per...

ManagedRuntimeError System.NotSupportedException: XLinq. Developing Silverlight in C# With Visual Web Developer

I'm using Visual Web Developer to build a Silverlight Class Library. I have another project where the Class Library is imported and implemented. It's loading an XML file and I'm using XmlSerializer.Deserialize into a class I created with xsd.exe. Sometimes, when loading the XML, I get this error: Unhandled Error in Silverlight 2 Appl...

How do you switch between "pages" of a Silverlight application?

I am currently loading the default file, page.xaml, but in that page, I am loading the content from another xaml file. With each "page" change, I just load the content from a different xaml file, and on and on. Example: this.Content = new StartPage(); I'm running into some syntax issues, however, because of the way I am changing my c...

Getting the height of an ImageSource in Silverlight

In my Silverlight control, I am loading my background image from a stream: BitmapImage img = new BitmapImage(); img.SetSource(stream); Image background = new Image(); background.Source = img; How can I find out the height of the bitmap image that was loaded from stream? None of the usual suspects (e.g., Property, Dependen...

Silverlight: Is there an event that fires on a FrameworkElement before it is rendered?

In our Silverlight 2 project we have created an attached property to perform on-the-fly translation to text properties of various user controls. To achieve this, we hook the Loaded event of the FrameworkElement when the property is set. When the event fires, we take the existing text property value and perform some simple string substitu...

how can i get current user name in Silverlight 2.0

Hi guys i m making one asp.net project with silverlight2.0 .But i cannot get current user name... how can i get current user name thanks... ...

Visual Studio Performance when editing XAML/Silverlight files

When I work on Silverlight projects within Visual Studio 2008, I regularly notice that the XAML editor hangs for up to 10 seconds. This because Visual Studio consumes 100% CPU during that timeframe. Any ideas how I could fix that? I assume this is some kind of background compiling for itellisense or something similiar. It happens during...

Silverlight getting loaded again and again in Firefox

I am using Silverlight.CreateObject function to create a object tag with a xap which is dynamic i.e. it does it on a click on something. And when u click that back again it gets disappeared. When u click it again, it should show the XAP again without loading it again(as it has been downloaded once). All works fine in IE. But in Firefox w...

How to make user persist between sessions?

I use Silverlight Business Application (Application with RIA Services). Create new project. All setting by default.Compile and run it. In application I create new user. It's all right. Then I add a chackbox to LoginWindow.xaml: <CheckBox x:Name="isPersistent" Content="Remember me"/> and modify LoginButton_Click method. private v...

Is it possible to simulate keystrokes in Silverlight (similar to SendKeys)?

Is it possible to build a Silverlight application with an embedded on-screen keyboard that is context aware (e.g. on-screen keyboard appears only when a textbox is in focus). ...

silverlight-how to open grid details in a new page.

Hi, This is the scenario I have a page page1 which has a grid and bound to the data(columns:id name,adress). The requirement is if i click on on of the id displayed in grid it should open a new page(page2) with textboxes displaying the details of the cliked id(name,address here) .Then i edit the page and save the data.Then clicking o...

Adding Permissions to a Complex System

I have a project with several separate components that all need to talk to each other. I am now trying to find a good way to share a permission system between each component. The 3 major components are: An ASP.Net Web Application A Silverlight application (served by the web application) A Windows Service, which provides some WCF web ...