silverlight

Are local admin rights required to install Silverlight?

佐手、 提交于 2019-12-23 17:52:30
问题 Can anyone provide an emphatic answer as to whether local admin rights are required to install the Silverlight 3 client? Most of the Google results say “yes” (with some conflicting answers), but I’ve just tested this on several Win XP machines and installation was definitely successful without admin rights. Just to be crystal clear, the machines I’ve tested are in a corporate managed desktop environment and users most definitely do not have local admin rights. A “net localgroup Administrators

Load 3D object in Silverlight 3/4

跟風遠走 提交于 2019-12-23 17:40:13
问题 Is is possible to load 3D objects in a Silverlight 3 or Silverlight 4 application? (3DS Max objects or other formats). Besides loading the object I also need some basic interaction - simple rotations, zoom in/out. 回答1: I think the managed 3D engine Balder might be the right choice for you. It runs quite good in Silverlight and I've used it with Silverlight 3 and 4b. Balder supports the ASE format at the moment, but Einar and his contributors are working hard on the engine and they want to

How to merge two collections into one

杀马特。学长 韩版系。学妹 提交于 2019-12-23 17:39:02
问题 I have two collections created within Silverlight each collection is created at separate times by different methods. Method 1 creates a List<> titled person ( contains fields first name, last name age) Method 2 created a List<> titled Phone ( contains phone number, cell number) Is there a way within SL to combine these two Lists into one Collection that could then be bound to the view for display? Example: combined into a collection that contained all properties (first name, last name age,

Silverlight passing JSON object incorrectly?

北城以北 提交于 2019-12-23 17:33:50
问题 I have a Silverlight class marked with the ScriptableType & ScriptableMember and I expect to be able to pass the object from Silverlight to javascript. When I call JSON.stringify (in javascript) I expect to receive a JSON representation of the object but all I get is {} The class is defined as: [ScriptableType()] public class MyEvent { [ScriptableMember(ScriptAlias = "eventContent")] public int EventContent { get; set; } } I pass the object from Silverlight like this: var jsonObject = new

Printing with Silverlight and com-interop

谁都会走 提交于 2019-12-23 17:33:14
问题 I'm trying to print from silverlight without a print dialog and for that I'm using System.Runtime.InteropServices.Automation; Right now I'm creating a temporary txt file that contain the text to send to printer. using (dynamic fso = AutomationFactory.CreateObject(@"Scripting.FileSystemObject")) { dynamic file = fso.CreateTextFile(cFileName, true); file.Write(printText); file.Close(); } After that I'm using shell.Aplication to print that document. dynamic shell = AutomationFactory.CreateObject

Unit testing “hybrid” WPF/Silverlight controls

放肆的年华 提交于 2019-12-23 17:21:22
问题 I'm starting a new WPF/Silverlight custom control project and wanted to do unit testing on this one. However I'm a little confused about how to approach this. This control would be based on the same codebase for both WPF and Silverlight with minor forking using #ifs and partial classes to tame the differences. I guess I could write unit tests for WPF part with NUnit, MSTest, xUnit, etc. and for the Silverlight part with Silverlight Unit Test Framework but this doesn't sound very elegant to me

How to detect mouse clicks without listening to any mouse events defined in framework controls?

谁说胖子不能爱 提交于 2019-12-23 17:17:48
问题 Is it possible to detect mouse clicks without listening to any mouse events defined in framework controls? I mean, I don't want to write code like : control.MouseLeftButtonDown += this.HandleMouseLeftButtonDown; Yet I want to know if user clicks on the screen or not. Is it possible in C# (WPF or Silverlight)? 回答1: You can register a class handler in a static constructor you your main window, for example: static MainWindow() { EventManager.RegisterClassHandler(typeof (MainWindow), Mouse

How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function?

爱⌒轻易说出口 提交于 2019-12-23 16:53:58
问题 We are creating a client in Silverlight that will show a lot of TIFF images. Silverlight natively do not support TIFF. I need a control/class to convert tiff to jpg in runtime inside the Silverlight client. Any idea? 回答1: In Silverlight forum last friday I received this post: Re: How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function? 12-18-2009 5:38 PM | If you're willing to use a third-party library, check out ImageGear for Silverlight provided by

DataContract IsReference=true returning empty objects

限于喜欢 提交于 2019-12-23 16:14:18
问题 I have a WCF service with cyclic references that I was using the CyclicReferencesAwareAttribute attribute (http://chabster.blogspot.com/2008/02/wcf-cyclic-references-support.html) to solve. However now I want to use the same service with a Silverlight client. Receiving data works well on the Silverlight client with this method, however the CyclicReferencesAwareAttribute attribute does not work on the Silverlight side when I want to send objects back again. I have changed to use the

The remote server returned an error: NotFound. Silverlight + WCF

我怕爱的太早我们不能终老 提交于 2019-12-23 16:11:28
问题 I'm trying to call web service for few hours. I have added clientaccesspolicy.xml: <?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domain-access> </access-policy> and crossdomain.xml: <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"