silverlight

Deployment: GWT vs. Silverlight

I'm in the early planning phase for a project and determining whether to use Silverlight or the Google Web Toolkit (GWT). There are obviously a lot of things to consider, but this question is specifically concerning deployment. This application is intended for intranets; i.e. it is not a hosted website and is intended to be deployed at...

Real time dashboards

I need to add a real time dashboard of data to a ASP.NET MVC application. The dashboard needs to be refreshed every few minutes from SQL server 2008. I was going to use ASP.NET MVC, with jQuery and AJAX. But Silverlight 3 is a possible option (each client has Silverlight 3 installed). I know WPF, is it worth the jump to SL 3 for this? ...

migrating .net class to silverlight class

hi, i have a web application with different business objects. i want to start developing a sliverlight application that is using some of these objects but i can't reference my business objects library cause it's not a sliverlight class library. now i guess i need to call web services to from my silverlight application but what type objec...

Get Serializable Object from Session in Silverlight

I have a complex, [Serializable] object stored in session. I have Silverlight 3.0 islands in my .aspx pages that need access to this data and its data type. It is my understanding that Silverlight does not support [Serializable], and since it is running on the client, it does not have easy access to session. I am looking for a solid w...

Silverlight 3 Merged Resources question

I have defined a custom resourceDictionary and I have added it to the app.xaml resources I have a style with key "MyStyle" in the Theme.xaml. How can I access the MyStyle style from the MainPage.xaml? ...

FIPS-compliant Isolated Storage in WinXP?

I've read (but not tested) that Isolated Storage uses Sha1Managed, which is not FIPS-compliant? Is that accurate, and can anything be done to use Isolated Storage on a FIPS-compliant WinXP SP2 box? I've seen mention of "Isolated Storage" within both the ClickOnce and Silverlight spaces. I'd appreciate an informed answer regarding eith...

Blend 3 - Keyboard Shortcut to switch between design and xaml views?

As I'm not more of a developer than a designer I like to hand code my xaml rather than using draggy-droppy stuff. Since silverlight 3 - the design preview in VS2008 has disappeared. It wasn't that great but at least I got a visual representation of my markup without having to run the application. So I installed Blend 3 and I'd still li...

Resizing images in Silverlight 3 using WriteableBitmap

This is my first day with Silverlight. I’m trying to prototype an application which (among other functions) should be able to resize user supplied images. It should be able to handle and display several resized images at once. The most obviously approaches I've tried seem to "leak" memory in the sense that the original bitmaps are still ...

Silverlight Border - Am I stupid?

Hi, sorry, I did not find something useful when searching google. Very basic question, mainly "Am I stupid". I know StackPanel gives its child elements full space, but why does the "Auto" property relate to the PARENT element in case of a border. I mean perhaps I am doing something wrong, but this behaviour is definitly not what I intend...

How do I format a Uri when binding an Image in Silverlight?

I haven't been able to find an answer to this. I have a database that has image paths in it ("images/myimage.jpg"). These images exist on my asp.net site which is also where I host the SL. I want to bind these images to my ListBox control so that the image displays. I have read that since I have a string value, "images/myimage.jpg", ...

Which is the future of web development: HTML5 or Silverlight(or other RIA framework)?

My colleagues have a heated debate on what is the future of web development. One side is supporting HTML5 and the other is supporting Silverlight. There is no conclusion of the debate yet. In my humble opinion as a programmer, HTML5 will not improve programming productivity, while Silverlight will. In my understanding, programmers still...

XAML page Flip twist

I have this Page.xaml <UserControl x:Class="SLBookDemoApp.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:SLMitsuControls;assembly=SLMitsuControls" Width="800" Height="600" Loaded="UserControl_Loaded"> <Grid> <local:UCBook...

Marshalling unmanaged code in silverlight

Hello all, I've got this small web application I've built. It's got an activex control returning unmanaged code through javascript into a silverlight application. In silverlight I perform a marshaling operation on the returned value. When I only perform the simple operation of GetSize() I get struck with a stupefing error. This brings m...

Models and Validation in Multiple UI Delivery Mechanisms

I work with a small team. We have multiple delivery mechanisms, often for the same business models but different exposures. We need some help with our efficiencies sharing models and validation across our applications. What is the best mechanism to create consistent validation for our models, for both user experience and code reuse acro...

How should I architect my Silverlight Application?

So far I have been creating Silverlight apps with all logic crunched into a single xap file. But as the application grows in size, I seriously think I should break my Silverlight application into smaller multiple independent applications. I would like to know how others solve this increasing size problem?? Thanks... ...

Silverlight Toolkit TreeView Drag and Drop

Does any know how to implement drag and drop in the silverlight toolkit's treeview? I saw the drag and drop manager for silverlight but supposedly you can put containers around the items you want to drag and drop but I wonder how I would do this on another treeviewitem exactly? Maybe there is a better way or custom way? Thanks! ...

How do I use Microsoft.Build.BuildEngine to Build a Silverlight project?

I am using the Microsoft.Build.BuildEngine to build a number of projects. Projects that do not use Silverlight are building correctly while projects that do use Silverlight are not building. All of these projects (Silverlight and non-Silverlight) all build fine through Visual Studio 2008. I get the error message: error CS0234: The...

How to avoid jerky animations when adding several UserControls?

I have a Silverlight application where I periodically load more data and add it to the page as UserControls. I load about 25 objects in one set and create one UserControl for each object. This ends up taking quite a bit of time! Loading 25 objects takes 50-150ms purely in the UI. This makes my animations rather jerky, which is very much...

How to add a close button to ValidationSummary in Silverlight

In Silverlight 3 I am working with a MVVM and also the validation principle that the setters cause an exception if a validation error occurs. I using the Binding Syntax on the fields using TwoWay i.e.: <TextBox x:Name="TextBoxClientName" Text="{Binding Name,Mode=TwoWay,ValidatesOnExceptions=True,NotifyOnValidationError=true}" Grid.Col...

Serialize xaml in silverlight

Hi, I need to serialize a specified element of my xaml markup in silverlight. I've used the silverlightcontrib library and the xamlwriter class that has, however when trying to load a textbox control back an error is thrown stating that a textbox cannot contain content. Upon inspecting the xaml file that is produced, the textbox elemen...