silverlight

Silverlight: How to load and run another silverlight .xap file

Hi, I want to know whether is it possible to load and run another xap file in a xap file. If its possible please tell me how to do that with code. Thanks in advance! ...

Capturing WPF Vector Information BEFORE it Renders to Screen

I'm trying to "capture" or record the vector display information of a WPF (maybe Silverlight) application and play it back. However, instead of capturing bitmaps of what is rendered, I would like to capture the vector information BEFORE it gets rendered so that I can play it back at different resolutions without loss of quality. Ideall...

Prevent lazy loading in nHibernate

Hi, I'm storing some blobs in my database, so I have a Document table and a DocumentContent table. Document contains a filename, description etc and has a DocumentContent property. I have a Silverlight client, so I don't want to load up and send the DocumentContent to the client unless I explicity ask for it, but I'm having trouble do...

Value is out of Range Exception While setting ResourceDictionary Source to CustomControl's generic.XAML

Hi, I have a custom Control which contains the generic.xaml inside the Themes folder. I have set the build action to Resource. Now from App.xaml I am setting the reference to the DLL by using : xmlns:localFolder="clr-namespace:customControl;assembly=customControl" After the reference is set I am trying to Merge the Resource diction...

WPF PropertyGrid - adding support for collections

Hi, I am working on wpf propertygrid(PG) control and I want the PG to support collection type(IList, ObservableCollection etc.) properties. I am bit confused on how to keep track of selected item(of that collection) and pass that to client. Any ideas? If the solution makes use of the Open Source WPF PropertyGrid (http://www.codeplex.c...

Silverlight Out of browser and on demand loading of assembly

Hi, I want my silverlight application to work out of browser and it should support on demand loading of assemblies as well. If i implement on demand loading of assemblies, what will happen in case of out of browser support, will it work fine? or it will download all the assemblies during the installation itself. Thanks, Mrinal Jaiswal...

DataGrid binding issues

Has it ever happened to you that a datagrid bound to another element's selecteditems collection, doesn't update the first time an item of the second element is chosen? After the first attempt everything works fine. It is necessary to mention that I've set the AutoGenerateColumns to false, and define the columns myself. ...

VisualState inheritence in Silverlight

I'm writing a control that inherits from a RadioButton and doesn't do anything more spectacular than display an image and hide the default circle. One thing I haven't been able to find out about is if I have to re-implement all the VisualStates again in my ControlTemplate, or can I simply put them as an empty element and they're inheri...

NullReferenceException at Microsoft.Silverlight.Build.Tasks.CompileXaml.LoadAssemblies(ITaskItem[] ReferenceAssemblies)

Hi, I updated my Visual Studio 2010 to the version 10.0.30319.1 RTM Rel and start getting the following exception during the build: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Silverlight.Build.Tasks.CompileXaml.LoadAssemblies(ITaskItem[] ReferenceAssemblies) at Microsoft....

Problem with large Canvas in Silverlight

Hi, I am developing (using Silvelight 3) an aplication that creates some kind of timeline and places objects on it. For this purpose I need a really large Canvas (up to 2000000 pixels width) with long lines on it, but whenever I create Canvas even 40000 pixels width it behaves very strangely, randomly disappearing. I have found a post ...

Silverlight 3 version compatibility

We've noticed a compatibility issue with a Silverlight 3 app which runs fine with v3.0.40818, v3.0.50106 and v4.0.50401 but refuses to load in v3.0.40624. Instead it gives a message box saying a more recent version of Silverlight is required. Does anyone know what the changes were between 3.0.40624 and 3.0.40818 or why the app might not...

Navigating to pages within a dynamically loaded XAP

I have dynamically loaded a silverlight application (XAP) with multiple pages, to be hosted inside a master application. I'm able to run the application and load and display the initial page of the dynamically loaded application (which itself uses the business app template). However, when that application then tries to navigate to one of...

C# / Silverlight: SL classlibrary referenced in "normal" C# - application, must Silverlight be installed?

So, I want to share TONS of code between Silverlight and "normal" applications. Starting with utility functions and all that up to my hand coded framework (MVC, DI, etc...)... Here is my question: Imagine I have put all this stuff into a SL - Classlibrary, lets call it "AmazingLibrary" and I reference it in a NORMAL (say, WPF) project ...

Silverlight data-driven application with NHibernate

Hi Guys, this is more of a subjective Question, but I'll ask it anyway. I'm about to develop a very data-centric application that has to run inside the browser. The frontend will be Silverlight, backed by a Fluent NHibernate service that runs server side. The problem here is: Wherever I look for data-driven silverlight app I wind up fi...

Bind selected value on combobox to view model

Hi, I have my silverlight app which pulls data into a datagrid from a view model. The vm is exposed via Mef. I also have a details grid which has comboboxes. The vm also contains the data to populate the combobox values. Upon first load, everything works fine and the selected items on te comboboxes are correct and I can select alternati...

Any samples of MVC2 + Silverlight 4? Visual Studio 2010 does not organize the files correctly.

I create a SL4 Application and then I say I want to create a MVC site in addition. But instead of create a VIEW and putting showing the SL4 object there and creating a empty MVC type Default page... it just creates a SilverlightApplicationTestPage.aspx in the root! Does anyone know any small sample code anywhere that shows how to set up...

Dynamically adding Views in Silverlight & MVVM

Hi all, I am starting to re-write my whole silverlight business application in the MVVM pattern; My first stop-point is this: I have a page (View1) with corresponding ViewModel1 (with a property 'IEnumerable AllData'); Now, within this View, I want to have i.e. a tree-view control, in which one node will be populated with another View...

Can I embed a silverlight sketchflow player in my web page?

Hi I'm new to silverlight and sketchflow. I'm getting on great with creating prototypes and can export to Word etc. I would really like to embed a prototype in another web page - is this possible and how would I go about it? Thanks ...

Display xml data in silverlight datagrid, vb.net

I want to display an xml file data in silverlight datagrid. im using the below code but it doesnt work.Please help. My vb.net code: Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Windows Imports System.Windows.Controls Imports System.Xml.Linq Namespace SilverlightApplication1 Public Par...

Tools\addin's for formating or cleaning up xaml?

I'm guessing these don't exist since I searched around for these but I'm looking for a few tools: 1) A tool that cleans up my xaml so that the properties of elements are consistent through a file. I think enforcing that consistence would make the xaml easier to read. Maybe there could be a hierarchy of what comes first but if not alpha...