silverlight

WinForms, WPF, Silverlight, Asp .NET, MVC, ... What to choose?

I've been programming for over 15 years and started with .NET 5 years ago. We built our framework for windows data-oriented apps and it is a quite stable. At this point, we are considering to make a new platform. But, I am a little bit confused with all these new technologies. We considered CAB and SmartClient technologies but there are...

C# Silverlight Combobox - what is up with this?!

I have a c# silverlight business application that uses the ado.net entity framework and the domain service class to bind to my sql server database and pull data from/ persist data to my database. I have been using the dataformtoolkit namespace to layout textboxes which can be edited/display data, using a TwoWay binding mode in order to a...

Silder MouseLeftButtonDown Doesn't Work?

When trying to use a Slider control I'd like to listen to the MouseLeftButtonDown and MouseLeftButtonUp. I have handlers set up for both events. The MouseLeftButtonUp works as expected. MouseLeftButtonDown is not raised at all. Any ideas why? I've done a bit of googling and it seems that the WPF doesn't fire either. One of the solu...

How to update Source property of MediaElement and start playback in Silverlight 3.0

I'm writing a small Silverlight media player application. In the top of the page i have an horizontal listbox with listboxitems. The listbox is bound to a datasource containg an object I've created called ContentItem. The ContentItem is defined like this: public class ContentItem { public string CoverUrl { get; set; } ...

Silverlight serialisation/deserialisation problem

I'm looking for a way to persist Silverlight objects to a user's PC, then re-hydrate them so the user can finish editing them. Serialising with DataContractSerializer and persisting to IsolatedStorageFile works fine. However, deserialising causes a problem. Here's the code that causes the failure: private string _FirstNames = string.E...

Expression blend 3 Sliding content?

Hi I'm trying to create an effect whereby when I click an arrow my content slides to the left and dissapears thus leaving an new set of content in its place. Much like the way wp-coda works http://wordpress.bustatheme.com/coda/, but i wan to do this in expression blend which uses silverlight. Thanks Judi ...

Bring closer Items in ItemsControl

I have an Itemscontrol, witch contains two items after the Binding. My problem is that the second item is getting out from the window's area. My question is - how can I bring closer the Items's texts without reducing the font size or increasing the window's height ? Is there something like the padding and marging of HTML ? or maybe so...

Is it necessary to change the service contract of a WCF service (Begin<operation> and End<operation>) for it to be consumable by Silverlight?

My team owns both the WCF service and the Silverlight 3.0 application that will be consuming it. We do not want to use svcutil to generate proxies as it adds complexity to the development process. We've been down that road before and we're not doing it again. I've successfully used the ChannelFactory on a WinForms app and I'd like to...

Can HyperLinkButton in silverlight navigate a NAS or Local-file uri?

Hi, In my silverlight application I have a section like this: <HyperlinkButton Content="{Binding MediaFile.FileName}" TargetName="_blank" NavigateUri="{Binding ., Converter={StaticResource MediaFileToFullPathConverter}}" Style="{StaticResource HyperLinkButtonStyle}"/> For testing purposes I use local navigation paths to the ui ...

Silverlight object in an asp.net MVC view

I am trying to incorporate a silverlight object in one of my controller's views and for some reason the silverlight doesn't display at all... everything works fine in the aspx and html test page. my code in the view looks like this: <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height=...

Using System.Reactive in .NET 3.5 (in a shipping product)

This question is no longer relevant now that microsoft have released a proper version of the Rx framework on devlabs Original Question I've downloaded the Silverlight 3 toolkit and rebased System.Reactive.dll to work on the .NET 3.5 CLR, and am really enjoying using it. What I'd like to know is, can I ship it? The codeplex site fo...

How do I sort hierarchical data in WPF?

I am creating a menu that will have its menu items injected into it from different modules (I am using the Composite Application Library: Unity, Prism). Example: File - Open - New - A (injected from ModuleA) - B (injected from ModuleB) - C (injected from ModuleC) - Exit Because I don't know which items will be injected, I need...

implement client-side business logic in silverlight on an asp.net page

I've heard (on a podcast) about using Silverlight to do client-side validation on an asp.net page. Meaning you have an html page and then you put all the business logic/validations that you would normally put into javascript into Silverlight. However, I'm unable to find any examples of this -- and unfortunately don't know which podcast i...

Silverlight PRISM, instantiate a view and pass data into the viewmodel

Hi, I have been looking around and haven't found much information on this yet. I have a PRISM project set up and it all seems to be working so far, within the main class of a module I am programatically creating my views. What I am trying to do is get an object sent through to the viewmodel for each instance of the view. At the moment ...

Performance and diagnostics tools for Silverlight

WPF 3.5 has PresentationTraceSources for diagnostics and WPFPerf for performance and data binding diagnostics. Are there equivalent tools / libraries for Silverlight? ...

silverlight tcp tunneling / bridging

I have an application that I develop in Silverlight and it must connect to another legacy app that I cannot control which demands TCP connection on the 3005 port. I can't modify the legacy app to bring the port in the silverlight accepted range (4502 - 453x). Is there a bridging app / another solution that would listen on a configurabl...

Double Click Event

How to make a double click event in C# for using Silverlight3.0. In my project, i had created stackpanel dynamically, When the user double click on the stackpanel, the child window will be displayed. There is no such event in silverlight. How to make a double click event for my application? ...

Can a Silverlight 3 out of browser application (OOB) host a html area?

Is it possible to include a html area in a Silverlight 3 out of browser (OOB) application? Due to the fact that no html/dom bridge is accessible the DIV overlay does not work as far as I know. ...

How to implement paging in Silverlight 3 datagrid?

I was trying to implement Grouping and paging in silverlight 3's datagrid, I found ways to do the both with help of PagedCollectionView class, but the problem is I need tradition ASP.Net datagrid like paging, how could I do that? any Idea? ...

Prevent stack overflow for to many unclosed Silverlight Socket connections

I searched on the web for a solution to my question, but with no results until now. I did a test with a Silverlight app, a SocketServer and a SocketClient (with is a silverlight app). In Debug mode, with both apps running, when I close the browser window, I did enjoyed to see that an event is fired on server and the Socket connection is ...