silverlight

Silverlight: Use of a local WCF service for business logic (intermediate WCF Service)? (Ria services in conjunction with a normal WCF Service?)

我的梦境 提交于 2019-12-25 04:48:11
问题 I have my silverlight calling my WCF service and its working great. This is a WCF (not ria) service that basically returns enitites or collection of entities. I really don't have control over it to add additional items just for silverlight for example. So i was thinking but maybe its bad performance or desgin.. But to have a local WCF Service hosted with the Asp.net website that hosts silverlight.. ANd i can use this wcf service for business logic that doesn't need to return entities. For

How can I animate a property dynamically in a Silverlight 4 UserControl?

女生的网名这么多〃 提交于 2019-12-25 04:43:43
问题 I've run into a puzzling limitation in a Silverlight 4 UserControl. What I'm trying to achieve is to have a panel, which slides out from a minimised state when a button is pressed, but the title bar of it should be draggable with which this maximised state can be resized. What I've done for the sliding out is to animate the MaxHeight property of the parent Grid of this panel which works quite well even with no hardcoded Height for the panel, but I don't know how can I make this dynamic.

How do you enable sorting on a Silverlight DataGrid that has grouping?

Deadly 提交于 2019-12-25 04:42:52
问题 I can't seem to find a way to specify that it sorts on the group name first, then the column. I am using the DataGrid. EDIT: My mistake, I am using the DataGrid, not the Grid. 回答1: A Grid is not a data control (like a DataGrid) so other than manually sorting and then adding the other items one-by-one, there's really no clean way to do it. You need to think of a Grid as a XAML version of an HTML Table tag. EDIT (OP changed from Grid to DataGrid, adding the following): Support for sorting the

How to prevent ScrollViewer from using MouseWheel event

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:39:30
问题 I'm building SL application for zooming and panning across the layout. Everything is working fine, except that when I zoom in using mouse wheel , after some zoom scrollbars start to use mouse wheel so after that I can scroll not zoom. I only can zoom again if I put scrollbars at the end or begining. How to prevent scrollviewer from using mouse wheel? I want that zoom only be operated by wheel. Thank you in advance! Here is my code of MouseWheel method when I'm zooming content : protected

WCF / Silverlight Call Back to Server Fails in IIS

此生再无相见时 提交于 2019-12-25 04:38:12
问题 Using Silverlight 3, Windows XP, IIS 5.1, I've written a small app which uses the channel method of calling the server rather than the 'add service reference' as per this MSFT article. The application opens and the call to the server work when running it on the development computer in VS 2008 using the address localhost plus the port number. When I change the address to the computer name, dellnov2006, and publish the application to IIS, the application opens, but the call to the web service

Silverlight not sending cookies in cross-domain browser requests

馋奶兔 提交于 2019-12-25 04:21:52
问题 I have a Silverlight 3 control that makes a cross-domain HTTP request to http:// somedomain/. I am using the browser HTTP stack to make this request. A proper clientaccesspolicy.xml on somedomain is in place. My browser has a set of cookies for somedomain and I want these to by used when said HTTP request is made. When my Silverlight control is loaded from http:// localhost/, however, none of my cookies seem to be transmitted (I am using Fiddler to trace HTTP traffic)! When I upload the xap

Cloning a silverlight embed object results in an empty white element

℡╲_俬逩灬. 提交于 2019-12-25 04:17:55
问题 I have a page with a few silverlight embed objects. One player is visible and all others are hidden (display: none). When I click a thumbnail the code clones the corresponding, hidden object and replaces the visible player with this cloned object. This works fine in Firefox, Chrome and IE9, but in IE8 it doesn't work properly. The visible player gets replaced, but this results in a big white empty silverlight player. If you right-click this white element, it shows a silverlight context menu,

Callback not binding correctly

↘锁芯ラ 提交于 2019-12-25 03:53:52
问题 In the code below, the UnitOccupierDetails collection binds correctly but the OwnersCountString doesn't. Can anyone explain why? This code is in my ViewModel: private void BindSelectedStructure(object param) { UnitOccupierDetails.Clear(); Structure selectedStructure = (Structure)param; this.SelectedStructure = selectedStructure; int StructureID = selectedStructure.IDStructure; loadOwners = context.Load<UserOccupier>(context.GetUnitOccupierDetailsQuery(StructureID), OwnersLoadedCallback, false

Silverlight Databinding Question

血红的双手。 提交于 2019-12-25 03:48:14
问题 I have a TextBox ( TextBoxConsumer ) and i would like to enable a button in my UI when the length of the TextBox.Text is greater than 3, i digged it down to IsEnabled="{Binding ElementName=TextBoxConsumer, Path=Text.Length}" for my button's IsEnabled Property but im not sure how to find the length and convert it to bool depending on the length of the text box how do i do it? i would like to do it entirely in Xaml instead of code using Binding instead of code 回答1: I would prefer to use an

Resource Dictionary as Linked File

走远了吗. 提交于 2019-12-25 03:41:43
问题 Resource dictionary 03-11-2010 10:56 AM | I have two different projects. I linked a resource directory in using add existing item add as link. Silverlight does not see the resource dictionary when it is a linked file and give me an out of range error. Any work around to this or any better way to use the same file across two projects? 回答1: I would reference the assembly that has the resource dictionary normally (don't add it in as a link), and then bring it into the application using Merged