silverlight-4.0

Silverlight (4.0) for WPF guys

For years I have exclusively worked with WPF and never touched Silverlight. Is there a quick tour for WPF pros that introduces me to Silverlight (4.0) its unique features and its differences to WPF? ...

How do you load and save content from a Silverlight 4 RichTextBox control?

I've been reviewing the features of the RichTextBox control in Silverlight 4. What I've yet to find is any examples of Loading and Saving content in the RichTextBox. Anyone come across any or can shed some light on it? The control has a BlocksCollection in which I guess one could use the XamlReader to load a bunch of markup assuming t...

Problem Saving Silverlight 4 Business Application

I’m trying to create a new project using the Silverlight 4 business application template in Visual Studio 2010 beta 2. When I click “Save All” after the project is created I get build errors such as: The project file "..\BusinessApplication1.Web\BusinessApplication1.Web.vbproj" was not found. BusinessApplication1 Unable to open modul...

How can I create a hybrid Silverlight and aspx application

Here is my scenerio.. We have an ASP.Net 2.x web site. We want to migrate it to Silverlight full frame application. However, there is no way we can go away in a corner and redo every web page in SL right off the bat. What I would like to do is build the chrome of the app (main page, dashboard, login, common system/config screens, main...

Accessing the WebContext class in XAML

The generated App.xaml.cs file contains this private void Application_Startup(object sender, StartupEventArgs e) { // This will enable you to bind controls in XAML files to WebContext.Current // properties this.Resources.Add("WebContext", WebContext.Current); but I cannot figure out how to refer to this object. It seems like I o...

Resolving associated objects in SL4 RIA

Having created a standard Silverlight Business Application in VS2010 and set up a model from a SQL Server database, I have various entities and associations, among which AssetGroup and Asset are in a 1:m relationship. Allegedly I can use dot notation to get the associated AssetGroup out of an asset instance. Through the modern miracles ...

Is it possible in Silverlight to stream a live video screencast of the desktop?

I would like to develop a web conferencing system (or web classroom) as a graduation project using Silverlight similar to iVocalize which is a java applete . I don't know if what is possible for a java applete to perform on the PC is also possible for Silverlight, or is SL more restricted. There are two functionalities (which are r...

Web services and methods with array parameters

I'm trying to wrap ReportExecution2005 from SQL Reporting Services so that I can domain authenticate on behalf of a Windows Auth Services login. ReportExecution2005 defines SetExecutionParameters(ParameterValue[] Parameters, string ParameterLanguage) But when I put an array of any sort, even string[], in a method signature, the serv...

Shell execute an EXE in Isolated Storage

Is it possible to shell execute an exe which is stored in the isolated storage space. In silverlight ...

Seeking Font Strategies for Silverlight Apps

As I'm working through an SL3/SL4 application, and starting to work with fonts, I'm finding a lack of documentation and best practices on font strategies. For example: Are there common fallback fonts for the supported font set (Arial, Comic Sans MS, etc.)? Is there a set of recommendations on fallback fonts between Windows and Macintos...

Bird's eye data visualisation in WPF and web client automation

This is a complex problem and it deserves a long explanation. Let's say that I have a picture of a high level workflow/sitemap of a web site: http://home.everestkc.net/radoslav/Question/High_Level_Workflow.png Basically there is a main flow and some alternative paths with various number of pages/images in each case. In essence I want ...

Error when creating a new entity foo, editing a previously existing foo, then saving. Generic 4004 error

The steps are as simple as that so I imagine there's something else going on here, the problem is I just get back 4004, no exception anywhere etc, making it annoying to debug, I get this from the ie error window Microsoft JScript runtime error: Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: ...

LoadedData accumulate results with related objects in Ria Services

Hello, I'm working with SL4 & .Net Ria Services. My datamodel has Devices with a 0..* property called DeviceAndStates, through this <riacontrol/> I get all Devices and his DevicesAndStates of a particular type. <riaControls:DomainDataSource Name="deviceDomainDataSource" QueryName="getDevicesWithOpenStateQuery" .../> In the client sid...

Do custom controls in Silverlight 4 need to be in separate DLL's ?

Hi, I am creating a number of custom controls for a Silverlight 4 project. I have successfully created one control and am wondering if I can define more in the same project and then have all the controls bundled into one .DLL. Right now, I have the standard files for the first control: /Resources/icon.png /themes/generic.xaml /Custo...

Out of browser and multiple windows

When you are using out of browser in silverlight are you trapped into a single window or can you open a second window? ...

How to aggregate bindings in Silverlight UserControl

Imagine a UserControl containing some sort of ItemsControl. The UserControl as a whole has a DataContext, but you also need to expose the ItemsSource of the ItemsControl. I have tried all manner of arrangements, and eventually passed a DomainDataSource as a UserControl dependency property named DDS, and bound the ItemsControl like this:...

Is the current Silverlight 4 beta supported on Visual Studio 2010 RC?

As probably everyone knows, MS just released the RC for Visual Studio 2010 (http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx). I'm about to download and install it, but I need to know if the current Silverlight 4 beta bits are supported. Anyone happen to know, or know differently? (If I don't get an answer, I'll post my results b...

Set DataContext of a textbox to the current class in silverlight

Hi, i have a textbox in a UserControl, i created a property in the UserControl, i want to bind the textbox text property to the property created in the usercontrol. The problem is that i dont know how to especify the datacontext to the current class in XAML. Any idea?? thanks ...

Issues / Steps in downgrading silverlight 4 app to silverlight 3

What steps does it take to download a Silverlight 4 application to Silverlight 3. I can't develop any longer with Beta 4 and made a wrong assumption that VS2010 RC would be able to run Sivlerlight Beta 4 - which it unfortunately can't. VS2010 RC which was just released can only currently work with SL3. (hoping/expecting someone to hack ...

Visual Studio 2010 Release Candidate & Silverlight 4 Beta - compatibility

I didn't find out about this until I already upgraded VS2010, but according to Visual Studio Magazine : In VS2010 Beta 2, many developers reported issues when working with XAML and Windows Presentation Foundation and Silverlight. The VS2010 RC supports Silverlight 3.0 apps. Silverlight 4.0, still in beta, is not supported...