silverlight

What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight?

半世苍凉 提交于 2019-12-21 04:11:25
问题 What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? Why would I choose one over the other? and what happened to Java Applets and ActiveX controls? Oh, and where does AJAX fit in to all this? and is Laszlo relevant? Afteredit (in response to some "d'uh" type answers): the question is a bit tongue-in-cheek. I know about the various RIA technologies. I am, however, interested in the StackOverflow community's opinion about each - particularly why you would use one over

How easy is it to port a Windows Phone 7 application to Metro on a Windows 8 tablet?

瘦欲@ 提交于 2019-12-21 04:09:23
问题 I know that Metro on both platforms shares a common “look and feel” and that WinRt makes use of XAMLand C# (or VB.NET) like Silverlight does on Windows Phone 7. However I also know that WinRT is not Silverlight. Therefore what is the process of creating an app that will work on both a Windows 8 tablet and a Windows 7 (or 7.5) Phone? How close is WinRt to Silverlight? 回答1: Despite certain people in Microsoft claiming it will only require changing a couple of lines of code... The only possible

Silverlight+WCF exception: Expecting application/soap+xml, received text/xml

删除回忆录丶 提交于 2019-12-21 03:58:53
问题 I have a Silverlight application in which I would like to call a WCF service. When calling the service I receive the following response from the server: 415 Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8 Has anyone experienced this problem before? Does anyone know which configuration settings I need to adjust? Any information on how to fix this would be appreciated. 回答1: Well, you could try using the

Error when binding a Dependency Property on a custom Behavior

早过忘川 提交于 2019-12-21 03:54:10
问题 I am exploring the Silverlight attached behaviors mechanism in order to use the Model-View-ViewModel pattern within my Silverlight applications. To start with, I am trying to get a simple Hello World working, but I am completely stuck in an error for which I'm not able to find a solution. What I have right now is a page that just contains a button which should display a message when clicked. The click event is handled by using a class derived from Behavior, and the message is specified as a

Using static objects in XAML that were created in code in Silverlight

寵の児 提交于 2019-12-21 03:42:06
问题 I couldn't get this to work in Silverlight, so I created two test projects. One simple WPF project and one simple Silverlight project that both do only one thing: set a public static readonly variable in code, and use it in a completely bare bones XAML. In WPF, works without a hitch. In Silverlight, I get the following compiler warning and runtime error: Warning 2 The tag 'Static' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml'... and Invalid attribute value {x

Bind a fill property in a path to a Foreground property from the ContentControl in a style

帅比萌擦擦* 提交于 2019-12-21 03:36:28
问题 I have silverlight problem I'v used two days to fight: a template with a style controls a button. In the concrete button I have a canvas with paths as content. The problem is that I want the paths fill color to bind to the Foreground from the ContentControl in the template. However, I haven't been able to figure out how to construct the binding to get to the Forground. If I would, for example use a TextBlock, it will automatically get the Forground color from the Style. As expected as the

Does Silverlight have a performance advantage over JavaScript?

霸气de小男生 提交于 2019-12-21 03:33:59
问题 At a recent discussion on Silverlight the advantage of speed was brought up. The argument for Silverlight was that it performed better in the browser than Javascript because it is compiled (and managed) code. It was then stated that this advantage only applies to IE because IE interprets Javascript which is inefficient when compared to that of other browsers such as Chrome and FireFox which compile Javascript to machine code before execution and as such perform as well as Silverlight. Does

Best way to organize the files in my project

◇◆丶佛笑我妖孽 提交于 2019-12-21 02:55:13
问题 What is the best way to organize the files in your project? For example do you put all user controls in a separate folder or do you place them in a sub folder? Do you have business logic folder? A helper classes folder? I used to organize my projects like this: Project/User Controls/Module Name/ Project/Classes/Module Name/ Now I am learning more towards something like this: Project/Module Name/User Controls/ Project/Module Name/Classes/ What is the best way? Especially if the project gets

Silverlight async unit testing

你。 提交于 2019-12-21 02:53:09
问题 I'm having a weird issue with Silverlight Unit Test Framework. The very first method executed fails, every time. I have a second test with the exact same code, and it passes. The strange thing about the first time it's called is that it actually waits for the timeout and then executes the repository call (underneath it's an HTTP PUT if you care). Here's the code - the first one fails every time, second one passes every time: [TestMethod] public void AuthShouldSucceed() { var autoResetEvent =

Silverlight Shared MergedDictionaries

℡╲_俬逩灬. 提交于 2019-12-21 02:45:19
问题 I am using Silverlight 4 and trying to share some common styles (colors, brushes). My take was to put them into a "Common.xaml" Resource Dictionary and then use it in all other Resource Dictionaries. Referencing everything like so: <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SampleApp.App" > <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary