silverlight

Silverlight WCF with two-way SSL security certificates

Dear All! I would like to implement a server - client software with the following security requirements: WCF-Services need to be secured with SSL and Certificates for both, the server and the client Client certificates need to be generated programmatically upon user registration Client-certificates are deployed via a an automatically ...

Online voice chat: Why client-server model vs. peer-to-peer model?

I am adding online voice chat to a Silverlight app. I've been reviewing current apps, services and SDKs found thru online searches and forums. I'm finding that the majority of these implement a client-server (C/S) model and I'm trying to understand why that model versus a peer-to-peer (PTP) model. To me PTP would be preferable because go...

RIA Services for transmitting non DB object-graph

I have been getting into RIA services because I thought it would simplify dealing with the services layer of web applications I wish to build. I see lots of examples out there showing how to create DomainService classes which expose and consume entities that have some kind of relational database backing, and therefore have foreign-key re...

silverlight for .NET / CLR based numerical computing on osx

I'm interested in using F# for numerical work, but my platforms are not windows based. Mono still has a significant performance penalty for programs that generate a significant amount of short-lived objects (as would be typical for functional languages). Silverlight is available on OSX. I had seen some reference indicating that assem...

how to set Anonymous delegate as one parameter for InvokeSelf ?

I tried to use InvokeSelf for silverlight to communicate with html: InvokeSelf can take object[] as parameter when making a call: ScriptObject Myjs; ScriptObject obj = Myjs.InvokeSelf(new object[] { element }) as ScriptObject; then I want make a call like with anonymous delegate: Object obj; obj = InvokeSelf(new object[] { elem...

Is there anyway to stop automatic DataContext inheritance in Silverlight?

Is there anyway to stop automatic DataContext inheritance in Silverlight? I Set my DataContext on my parent UserControl in code. As a result all the xaml bindings inside the UserControl try to bind to the new DataConext they get (through the automatic DataContext Inheritance). The DataContext's for the children elements (actually they ...

Tag property null when data binding

Can anyone see what is wrong with this? The Tag property is returning null however the Binding for Id property is definately returning an int value. <ListBox ItemsSource="{Binding ElementName=myDomainDataSource, Path=Data}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal...

VS2010 Code: 2104 Could not download the Silverlight application

I've just started getting this Javascript error running VS2010 with SL4 Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings Everything was working fine, changed 1 line of code to use a RegularExpressio...

Prism Commands - binding error when binding to list element ?

I've got a ItemsControl (to be replaced by listbox) which has it's ItemsSource bound to an ObservableCollection<User> which is located in the view model. The View Model contains some DelegateCommand<T> delegates for handling commands (for instance UpdateUserCommand and RemoveUserCommand). All works fine if the buttons linked to those co...

Setting a ToggleButton Variable in the behind code in silverlight

Here is what i am trying to do private ToggleButton _itemChecked=Name_Of_Element_In_Xaml; That doesnt work. Is there a way? ...

Silverlight 4 accessing WCF Data Services: BeginInvoke frustrations.

Hi, I'm attempting to follow a pattern for performing WCF data service queries using the Silverlight 4 beta. The following is my code: public CodeTables() { CodeCountries = new ObservableCollection<dsRealHomes.CodeCountries>(); dsRealHomes.RealHomesEntities myClient = null; myClient = staticGlobals.Rea...

HttpUtility.UrlEncode in Windows Phone 7?

The regular .Net framework contains HttpUtility.UrlEncode in the System.Web Assembly and in Silverlight it appears it was moved to System.Windows.Browser. But in Windows Phone 7 (which I thought was the same as Silverlight) I can't seem to find a proper way to UrlEncode anything. Neither of the previously mentioned assemblies are availab...

like exec command in silverlight(save and load properties of Elements dynamically)

i have some element in my container and want to save all properties of this elements. i list this element by VisualTreeHelper and save its attributes in DB, question is that how to retrieve this properties and affect them? i think that The Silverlight have some statement that behave like Exec in Sql-Server. i save properties in one line...

Silverlight 3 Binding to the Current Item in a Collection

The Binding syntax, {Binding /}, works in WPF but does not work at all in Silverlight 3: <ContentControl Content="{Binding MyCollection}"> <ContentControl.ContentTemplate> <DataTemplate> <ContentControl Content="{Binding /}" /> </DataTemplate> </ContentControl.ContentTemplate> </ContentControl> What...

Free Excel spreadsheet Component for SilverLight?

I Need a Good Excel spreadsheet Component for Silver Light. I mean Free ones!!! ...

Silverlight 4 vs Flash

Could you tell me what are the main scenarios that Silverlight 4 allows and Flash does not? ...

IIS7 + WCF + Silverlight problems

Hey, I've been building a silverlight application and a WCF service for a while now and recently tried to host them in IIS7. I installed IIS7 on Windows Server 2008 R2 and added these two application to my default website. I am having a number of problems so im hoping one of you can help out... 1) The silverlight and WCF service applic...

How to get GC Information in Silverlight?

Silverlight does not provide perfmon counters for GC. How do i get GC Information? Thanks ...

Best way for programmers to edit XAML

I was wondering how programmers chose to edit XAML. Most of the programmers I speak to seem to edit the raw XML, but that seems nuts to me since it is such a natural thing for a more visual editor (of course you often have to get down to the raw code ultimately, but isn't there a better way to lay out a grid, or edit a template, or add n...

Difference In Visual State and Triggers

I have read somewhere that Silverlight is subset of WPF , then why triggers are not used in the silverlight and the States are used. what is difference between these two, Why not the triggers are used in silverlight 3.0 ...