silverlight

Testing scalability and performance for Silverlight 3.0

We have Silvelright application we need to test its scalability, what would be the best tool for that? ...

Weird splitter behaviour when moving it

My demo app displays two rectangles which should fill whole browser's screen. There is a vertical splitter between them. This looks like a basic scenario but I have no idea how to implement this in xaml. I cannot force this to fill whole screen and when moving splitter then whole screen grows. Can anybody help? <UserControl xmlns:c...

Adding pushpins with coordinates from SQL Server tables

Hello, I am a beginner in Silverlight and C# programming and i´m creating a Bing Map application. I try to add pushpins with coordinates and information from a SQL Server, but I can't figure out how to succeed. Mike ...

Expired Beta Release of Silverlight

I am getting the following message when trying to create a new Silverlight application in VS2010RC: This application was created for an expired beta release of Silverlight. Please contact the owner of this application and have them upgrade their application using an official release of Silverlight. What do I need to do to resolve...

Interact with Local PC from WebApp

I'm currently working on a corporate intranet application. Part of the requirements are to have the application start a program on the users local PC (Minitab) and then have the webapp communicate with it via it's COM interface. What are my options for doing something like this? A signed Java applet and Jacob ActiveX and .NET (this w...

MouseWheel: Scrolling vs. Zooming

I've got a Silverlight 4 custom control that basically is several Canvas elements wrapped inside a ScrollViewer. The user can set a property to determine whether to scroll or zoom when using their mouses wheel. In the custom control's MouseWheel event, I check to see if they want to scroll or zoom. If zooming, I determine the delta an...

Call OpenFileDialog Silverlight from JavaScript

I'm trying to call a function in a Silverlight 4 component to open a file dialog and upload a file to the server. Everything works well within Silverlight but I'd like to call the component from JavaScript. So I call the button click handler from a C#-function which is [ScriptableMember]. I get the following error when calling the functi...

Notification when popup is closed using Silverlight's HtmlPage.PopupWindow()

I am popping up an HTML page from a Silverlight application using the HtmlPage.PopupWindow() method. I am trying to handle the event of when the popup window is closed from within Silverlight. This is how I am attempting to do this: var window = HtmlPage.PopupWindow(new Uri("http://mypopup..."), "popup", options); EventHandler<HtmlEv...

Setter for Canvas.Left and Canvas.Top readwrite in WPF but not in Silverlight 4, why ?

Hi, I have the following XAML, which works fine in WPF, but not in Silverlight 4 <ItemsPanelTemplate x:Key="ContentListBoxItemsPanelTemplate"> <Canvas/> </ItemsPanelTemplate> <DataTemplate x:Key="ContentListBoxItemTemplate"> <Border CornerRadius="15" Width="150" Margin="3" Height="300"> ...

Silverlight - how to render image from non-visible data bound user control?

Hello! I have such situation - I'd like to build timeline control. So I have UserControl and ItemsControl on it (every row represents some person). The ItemsControl contains another ItemsControl as ItemsControl.ItemTemplate - it shows e.g. events for the person arranged by event's date. So it looks as some kind of grid with dates as a...

Silverlight: Is it possible to use custom mouse cursors/pointers?

I have just found this page indicating the support for Silverlight mouse cursors: http://msdn.microsoft.com/en-us/library/system.windows.input.cursor(VS.95).aspx Is that it!!! :-| what are they thinking, at least there is stylish looking Eraser! Is there aany other way to use custom cursors? How efficient/usable would it be to hide t...

Silverlight 4 WCF RIA Services and MVVM is not as simple

[Disclaimer: I'm ASP.NET MVC Developer] Hi, I'm looking for some best practices with implementing MVVM pattern with WCF RIA in Silverlight 4. I'm not looking to use MEF of IoC for locating my ViewModels. What I would like to know is how to apply MVVM pattern with Silverlight 4 and WCF RIA. I don't want to use other stuff like Prism...

redoing object model construction to fit with asynchronous data fetching

I have a modeled a set of objects that correspond with some real world concepts. TradeDrug, GenericDrug, TradePackage, DrugForm Underlying the simple object model I am trying to provide is a complex medical terminology that uses numeric codes to represent relationships and concepts, all accessible via a REST service - I am trying to h...

Capture Silverlight 4 event when panel clicked

I have a small Silverlight 4 app that essentially consists of a grid containing a label and a combo box. When I click the label, I replace it with a second text box so that I can edit the label (much the way you can edit the name of a Silverlight control in VS2010). I have a LostFocus event handler on the text box that will end editing...

How to access web application class into silverlight application

Hi..I am beginner in silverlight..I have created a silverlight project. When a new silverlight project is created it is automatically creating a silverlight application and one web application. I have added a class in both applications. Now I want to access a method of web application class into silverlight application class. Is it possi...

How to embed a SilverLight control in ASP.NET control (user or custom)

We have a ASP.NET web application written in VB.NET where we build content programmatically during the Init event. We make extensive use of user controls, building them on the fly, and I now want to start including SilverLight content. Is there an easy way of embedding a SilverLight application in a control, and then instantiating the ...

Uninstall out-of-browser silverlight application programmatically

How to uninstall out-of-browser silverlight 4 application programmatically instead of using the contextmenu (e.g. if I want to replace the context menu)? Edit I have found in "Installing Silverlight applications without the browser involved" how to uninstall by calling the command-line: "%ProgramFiles%\Microsoft Silverlight\sllaunc...

When I convert silverlight 3.0 project to 4.0 then I am getting resource dictionary error ?

When I convert silverlight 3.0 project to 4.0 then I am getting resource dictionary following error. The file is not part of the project or its 'Build Action' property is not set to 'resource' My app.xaml code is below for the resource dictionary. <Application.Resources> <ResourceDictionary> <ResourceDictionary.Mer...

I want to disable controls inside the Silverlight usercontrol from an event inside the asp.net usercontrol

Hey, I have an ASP.NET usercontrol inside which I am enbedding the Silverlight usercontrol. I have two events in the asp.net usercontrol - EDit and View . In the view mode I want all the controls on the Silverlight side to be disabled . So, How can I disable the controls from my asp.net code. Thanks ...

Smooth models in Wpf

I created MeshGeometry3D mesh in wpf. How can i display it smooth? I need something like that: http://www.forman.free-online.co.uk/images/smoothshading.png ...