silverlight

The HTTP request is unauthorized with client authentication scheme 'Ntlm'

大憨熊 提交于 2019-12-18 12:19:09
问题 While calling a web service I get the following error: The HTTP request is unauthorized with client authentication scheme 'NTLM'. The authentication header received from the server was 'NTLM'. The HTTP request is unauthorized with client authentication scheme 'NTLM'. The authentication header received from the server was 'NTLM'. I have a Silverlight 4 application that calls a WCF web service, both on my IIS (7). my WCF web service calls another ASMX web service, installed on a different web

WP SilverLight 8.1 vs WP 8.1 (XAML) pros and cons

筅森魡賤 提交于 2019-12-18 12:18:22
问题 I have been reading that Wp8.1 (XAML) apps are the new way of creating apps for Windows Phone 8.1, and the code is highly reusable for Windows 8.1 Desktop apps. But im a bit worried since performing a single search from the Contacts (ContactManager in WP8.1 XAML) is way slower than the Silverlight counterpart. Just returning all contacts from my Agenda (240 contacts with emails, thumbnails, etc...) takes 3 seconds in my Lumia 1520; the same operation with Silverlight code takes 0,7 seconds. I

Is it possible to navigate to pivot control page by a button clicked event

…衆ロ難τιáo~ 提交于 2019-12-18 12:05:40
问题 I'm trying to create a wp7 pivot control application. On click of a button in the first page, I would like to navigate to another page which is already a pivot page. Is it possible ? 回答1: If you have for example following definition for the Pivot control: <controls:Pivot x:Name="SettingsPivot" Title="settings"> <controls:PivotItem x:Name="GeneralSettings" Header="general settings"> <!-- Pivot Item content --> </controls:PivotItem> <controls:PivotItem x:Name="ConnectivitySettings" Header=

RIA Services versus WCF services: what is a difference

梦想与她 提交于 2019-12-18 11:50:31
问题 There are a lot of information how to build Silverlight application using .NET RIA services, but it isn't clear what is unique thing in RIA that is absent in WCF? Here are few topics that are talking around this topic: [1], [2] But they doesn't give an answer to the question. Sorry for the stupid question, but what does RIA Services layer bring into your app if you already have Silverlight <--> WCF Service <--> Business Logic <--> Entity Framework Model <--> Database ? Authentication?

How to dismiss a popup in Silverlight when clicking outside of the control?

点点圈 提交于 2019-12-18 11:45:54
问题 In my Silverlight UI, I have a button that when clicked pops up a control with some filtering parameters. I would like this control to hide itself when you click outside of it. In other words, it should function in a manner similar to a combo box, but it's not a combo box (you don't select an item in it). Here's how I'm trying to capture a click outside of the control to dismiss it: public partial class MyPanel : UserControl { public MyPanel() { InitializeComponent(); } private void

Null reference pointer was passed to the stub when not debugging with IE

[亡魂溺海] 提交于 2019-12-18 11:41:11
问题 In VS2012, my web project debugs fine like always. I use IIS Express. Today, I installed VS 2013 and when I press F5 to debug, I get I can't find a solution to this anywhere. I tried clearing out temp files, change the port number from 7227 to something else, deleting iis express config files, etc. I even uninstalled and re installed VS 2013. I can run without debugging, then attach to IISExpress and that works, but I can't start with an F5. Any clues? EDIT: Happens on another machine as well

Silverlight Constructor Injection into View Model + Design Mode

99封情书 提交于 2019-12-18 11:12:19
问题 Im trying to get to grips with writing testable ViewModels in Silverlight 4. Im currently using MVVM light. Im using AutoFac and the IoCContainer is doing its job fine. However to inject into the constructor of ViewModels, which are bound to Views I have this constructor chaining: public UserViewModel() : this(IoCContainer.Resolve<IUserServiceAsync>()) { } public UserViewModel(IUserServiceAsync userService) { if (this.IsInDesignMode) return; _userService = userService; } Which doesn't feel

Silverlight: How to receive notification of a change in an inherited DependencyProperty

你离开我真会死。 提交于 2019-12-18 10:45:25
问题 I have a control which inherits from (you guessed it) Control. I want to receive a notification whenever the FontSize or Style properties are changed. In WPF, I would do that by calling DependencyProperty.OverrideMetadata() . Of course, useful things like that have no place in Silverlight. So, how might one receive those kinds of notifications? 回答1: I think here is a better way. Still need to see the pros and Cons. /// Listen for change of the dependency property public void

Silverlight 3 - ScaleTransform or other method to zoom in a Canvas?

こ雲淡風輕ζ 提交于 2019-12-18 10:26:28
问题 I need to be able to zoom in and out of a Canvas using the mousewheel. I have successfully set up the mouse wheel handlers and am currently using a ScaleTransform to apply the zoom; however, the scaling is not done in an "intuitive" way. I'm trying to accomplish the same style of "zooming" as you can see in MultiScaleImage, Google Maps/Earth, or Adobe Acrobat Reader--but NOT with an image, with a control. The transition doesn't need to be "smooth" or animated (unless it's an easier approach),

What is the easiest way to add compression to WCF in Silverlight?

荒凉一梦 提交于 2019-12-18 10:23:30
问题 I have a silverlight 2 beta 2 application that accesses a WCF web service. Because of this, it currently can only use basicHttp binding. The webservice will return fairly large amounts of XML data. This seems fairly wasteful from a bandwidth usage standpoint as the response, if zipped, would be smaller by a factor of 5 (I actually pasted the response into a txt file and zipped it.). The request does have the "Accept-Encoding: gzip, deflate" - Is there any way have the WCF service gzip (or