silverlight-3.0

List of WPF functionalities that aren't in Silverlight 3

Deadly 提交于 2019-12-03 04:53:18
A common technical decision nowadays is whether to build a ClickOnce rich client application or a web application. Here I'm focussing primarily on choosing between a WPF application or a Silverlight application. The chief benefit of Silverlight is obvious - it can be hosted in a browser. But, if a programmer used to WPF was to start programing in Silverlight, what would he/she suddenly find is not possible or much harder? Items can be of the following: You just cannot do it, period You can do it, but only sort of, with lots of caveats You can do it, but there's a lot more hoops to jump through

Pitfalls of (Mis)Using C# Iterators to Implement Coroutines

℡╲_俬逩灬. 提交于 2019-12-03 04:25:27
问题 I am writing refactoring a Silverlight program to consumes a portion of its existing business logic from a WCF service. In doing so, I've run into the restriction in Silverlight 3 that only allows asynchronous calls to WCF services to avoid cases where long-running or non-responsive service calls block the UI thread (SL has an interesting queuing model for invoking WCF services on the UI thread). As a consequence, writing what once was straightforward, is becoming rapidly more complex ( see

Combining .NET RIA Services and MVVM in Silverlight 3.0

孤者浪人 提交于 2019-12-03 03:53:36
When using .NET RIA Services and MVVM in Silverlight 3.0 is there a difference between the Metadata type from RIA Services and the ViewModel from the MVVM pattern? Are these the same thing or should they be keep separate? The metadata type is a sealed internal class to the partial Entity class. There doesn't seem to be a proper separation there but the metadata type can also be decorated with attributes for Validation which makes it look like a ViewModel. I've searched around but I didn't see anything that talks about this in any detail. Agree with ChuckJ - generally the DomainContext forms

How to use Canvas as the ItemsPanel for an ItemsControl in Silverlight 3

Deadly 提交于 2019-12-03 02:40:16
I am trying to set the Canvas properties in an ItemsControl DataTemplate with Silverlight 3. According to this post , the only way of doing that is to set it using the ItemsContainerStyle for the ContentPresenter type, since the Canvas properties only take effect on direct children of the Canvas. This doesn't seem to work in SL3, since the ItemsControl doesn't have an ItemsContainerStyle property, so I tried a ListBox as advised by this article , but it still doesn't work. From the XAML below, I would expect to see a green square, with the numbers 10, 30, 50, 70 cascading from "NW" to "SE"

What DB required to make the Silverlight Business Application template work?

你。 提交于 2019-12-02 12:05:27
问题 I've been trying to run the Silverlight Business Application template but it fails when I try to register. I have SQL Express with an MSSQLSERVER instance and I've defined the standard aspnetdb created. The error is: Submit operation failed. Unable to connect to SQL server database. at System.Web.DomainServices.ReflectionDomainServiceDescriptionProvider.ReflectionDomainOperationEntry.Invoke(DomainService domainService, Object[] parameters) at System.Web.DomainServices.DomainService

How save canvas as image?

不想你离开。 提交于 2019-12-02 08:01:01
In my Silverlight application I have Canvas control in ScrollViewer and lot of controls in Canvas. If canvas is too long I can use scrollviewer to see all content. But I also wont to show for client in which part of canvas is he now like in photoshop. I wont to do that be saveing canvas as image and than shoing image on left top corner with red rectangle on veweing part. Is it possible to save canvas as image? If yes how to do that and if now is there any other solutions? Thanks. try this var img = new WriteableBitmap(myCanvas, null); 来源: https://stackoverflow.com/questions/4086550/how-save

Tools for automating SilverLight application

本秂侑毒 提交于 2019-12-02 06:37:43
问题 I want to automate the application develoepd in silverlight. Can you let me know whether there are any open source tools are available which can be used for automating SilverLight app. Thanks. 回答1: We are doing UI testing on a Silverlight application using the UIAutomation API, and it works very nicely. Project White is a library that sits on top of UIAutomation, and many people find it helpful. I prefer to use the UIAutomation APIs directly - it's really not as hard as you might think, as my

How to play MP4 (H.264 video) in Silverlight 3 (or 4) from a URL?

巧了我就是萌 提交于 2019-12-02 06:14:05
问题 So I have some URL of an MP4 file. I want to develop a simple Silverlight application to play it. How to do it? (Preferably with example code.) 回答1: Ole Jak, Here is a suggested step-by-step: Step 1: Create a sample Silverlight application with Visual Studio (File / New Project / Silverlight Application Step 2: In your newly create project, edit the MainPage.xaml, and place the following code inside the UserControl's Grid <MediaElement Stretch="Uniform" Grid.Row="0" Width="400" Height="300"

What DB required to make the Silverlight Business Application template work?

ぐ巨炮叔叔 提交于 2019-12-02 04:19:33
I've been trying to run the Silverlight Business Application template but it fails when I try to register. I have SQL Express with an MSSQLSERVER instance and I've defined the standard aspnetdb created. The error is: Submit operation failed. Unable to connect to SQL server database. at System.Web.DomainServices.ReflectionDomainServiceDescriptionProvider.ReflectionDomainOperationEntry.Invoke(DomainService domainService, Object[] parameters) at System.Web.DomainServices.DomainService.InvokeDomainOperationEntry(DomainOperationEntry domainOperationEntry, Object[] parameters, ChangeSetEntry

Does Silverlight XAML Support The Byte Data Type?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 03:03:26
问题 Here is my data type: using System; namespace UI { public class AddressType { public byte ID { get; set; } public string Name { get; set; } } } Here is my collection: using System.Collections.ObjectModel; namespace UI { public class AddressTypes : ObservableCollection<AddressType> { } } Here is my XAML from my UserControl.Resources section of my page: <local:AddressTypes x:Name="AddressTypesList"> <local:AddressType ID="0" Name="Select"/> <local:AddressType ID="1" Name="Office"/> <local