silverlight

Can we create a Silverlight Socket Server ONLY using SILVERLIGHT and XML's (NO WCF WPF CONSOL APPS)?

Can we create a Silverlight Socket Server ONLY using SILVERLIGHT and XML's (NO WCF WPF CONSOL APPS)? If yes. What do I need MSDN if there is any help on this. Open Source Libs/wrappers for encoding/decoding. Tutorials and blog articles on How to do it. If no I need where did you get the info from (link to MSDN or other official...

Are MVVM Patterns in WPF and Silverlight identical?

I really appreciate the question (and answers) we already have in “List of WPF functionalities that aren’t in Silverlight 3.” My allegedly new question narrows down the differences between WPF and Silverlight into the context of MVVM. Based on a Shawn Wildermuth MVVM sample project I downloaded from MSDN, I do see that, as of Silverlight...

Best not sealed UI element to derive from in Silverlight

Hello, I am currently creating a few test controls. In WPF everything is fine, I can subclass e.g. Border or ScrollViewer. In Silverlight this is not possible, so I have to do a little trick (multi-targeting)... I am deriving my test element from StackPanel and add the content as child. I could, of course, also derive from WrapPanel, Ca...

Closing a session with PollingDuplexHttpBinding

I'm using the WCF PollingDuplexHttpBinding channel to push notifications to Silverlight clients. For the most part it works well but I'm fighting it to get a few basis session management functions to work properly. The biggest problem I've got is trying to let the server know the client has finished with a session and no longer requires...

Out of range error when closing pop-up

Good Day, I have a Silverlight control that appears on top of another (picture a pop-up box). In this pop-up control, I have a scrollview (height = 250) with a stack panel (instance name = spMain, orientation = vertical) inside. Within the contents of the stack panel are several textboxes stacked on top of each other. When I tab from...

RIA .NET service installation error

I am trying to install Microsoft .NET RIA services Preview (RiaServices.msi) on a machine running Windows 7 RC + Visual Studio 2008 SP1, and get the following error: "2908. Error while installing assembly System.Web.DomainServices.Tools.VisualStudio, version 1.0.0.0.." Anybody else had this problem? What should I look at? ...

Programmatic way to determine if code is running in Silverlight?

I have a class that needs to run in both Silverlight and non-Silverlight runtimes. However, the behavior is slightly different so I need something like... if(isRunningInSilverlight) { // do this } else { // do that } How do I correctly assign isRunningInSilverlight? ...

can a UserControl be internal?

I have an assembly that defines a UserControl X. Within that assembly, X is composed of subcontrols Y and Z. I would like Y and Z to be marked internal, so that only X is available to users of my assembly. I tried to accomplish this by changing the default public accessibility in the XAML and codebehind classes, writing: <UserControl...

Is it possible to launch an event from a Silverlight control that can be used in your asp.net page?

Curious how this could be done. Is there any way to create a delegate method within a Silverlight control that can be used within an Asp.net page that the control resides? For example, let's say you are creating a Silverlight control that solicits information from a user (Ie. Name, age, etc), is there a way to somehow bind to a click e...

Can silverlight serialize annonymous objects?

Can silverlight 3 serialize annonymous objects? ...

Using ActiveX with Silverlight

I would really like to use Silverlight for a project I'm working on but I will need to interact with an application running on the user's desktop. Is it possible to do this with Silverlight, or am I stuck with ASP.NET + ActiveX? ...

EnqueueCallback in VB.net

I would like to perform a unit test in Silverlight, with VB.net. I have read an example of how to perform an asynchronous test (http://jonas.follesoe.no/UnitTestingAsynchronousSilverlightCode.aspx), but I do not know how to translate the following from C# to VB.net: EnqueueCallback(() => Assert.AreEqual(value, expectedValue)); Can s...

Silverlight PRISM getting the rendersize of a region

Hi, I am trying to get the render size of a region via the region manager. The reason for this is each time I add a view to the region I want to make sure it will visually fit, I can get the dimensions of the view I am about to add but I am struggling to find a way of getting the height of the region I am about to add to. Obviously I w...

Use UIElements as ItemsSource of ListBox in Silverlight

I've noticed that if you have anything deriving from UIElement as items in a ListBox in Silverlight it renders the object as is and isn't paying any attention to settings of DisplayMemberPath and/or ListBox.ItemTemplate. For example if you have XAML like this: <ListBox Width="200" Height="300" DisplayMemberPath="Tag"> <TextBlock Ta...

Silverlight 3 Navigation Framework: Query Custom URLs

Hi, It seems that with the Silverlight 3 Navigation Framework, it is possible to get a PHP-like parameter query mechanism like so: mydomain.com/Views/News.xaml?title=SomeTitle ..and get the title via Code-Behind. But what I want is something like this: mydomain.com/Views/SomeCustomText I need to access "SomeCustomText" (or any cu...

Web Application, which route to go!?

Hi, I'm going to develop a web application based on mathematics. It's going to provide stuff like canvas' showing graphs (quadratics etc.) and also provide an exercise area to test knowledge. I am stuck as to which route to take. I haven't developed a Web Application before and I am most confident working in C# applications. I would pr...

where to get some map images for deepzoom test data?

Hello everyone, I am developing Silverlight 3.0 deep zoom + C# + .Net 3.5 + VSTS 2008. I need some png or jpg small images to compose to a big map image, or using a big png or jpg map image to test deep zoom effect? Any free ones? thanks in advance, George ...

Bind to attached property in ControlTemplate - Silverlight

I have this style: <Style x:Key="ButtonStyle" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <StackPanel> <Image Source="{Binding Path=local:AttachedProperties.Im...

Silverlight Toolkit Modifying October 2009 Source

I have some changes I need to make to the Silverlight toolkit Charting source I downloaded the Silverlight toolkit ... unzipped the source to a new directory Added the Controls.DataVisualization.Toolkit.csproj Project to my Solution Removed The reference in my silverlight application to System.Windows.Controls.DataVisualizatio...

Styling Sylverlight Telerik Radupload

At the moment I'm using Silverlight RadControls from Telerik. In my site I've implemented the RadUpload control. Because the control is not styled the way I want, I'm restyling it for my site. The way I'm doing this is as follows: Right click on xRadUpload > Edit Template > Edit a Copy. After doing this I'm able to style almost everythin...