silverlight-4.0

Silverlight 4 and out of browser

怎甘沉沦 提交于 2020-02-02 04:07:15
问题 Does any one know if its possible to animate app.current.mainwindow.width so that you get a nice animation with easing if you programatically resize the oob apps window. Thanks. 回答1: The simplest way is to add a slider control to your page. The slider can be collapsed and is only used to have an easy propery to animate. Animate the Value property of the slider. In the ValueChanged event of the slider update the window width. You need elevated thrust to do this. It looks something like this:

DragAndDrop selectedItems of one silverlight Datagrid into another

情到浓时终转凉″ 提交于 2020-01-24 19:30:08
问题 Currently I am using "DataGridDragDropTarget" to Drag a row from one datagrid to another, but a client want to be able to select multiple rows from one datagrid and drop them into another. I played around a bit but realized "DataGridDragDropTarget" seems to be able to drag and drop single row at a time only. Is there any alternative way to DragDrop multiple selected rows? 回答1: Pressing Shift key while dragging multiple rows to another datagrid really works for this. But can anyone suggest how

launching desktop application from silverlight browser

自古美人都是妖i 提交于 2020-01-24 00:55:15
问题 I have developed one web application using silverlight 4.0. Now the requirement is to launch desktop application (could be thrid party or any platform) from the silverlight browser (mostly IE). Moving further I am planning to establish a communication (TCP/MSMQ) channel among them to communicate. The desktop application may or may not be installed at client side. So is it possible to achive this ? thanks in advance.... . 回答1: I am pretty sure, your app is going to be OOB. If not you are out

Polling Pattern for Silverlight 4 WCF Ria Services

两盒软妹~` 提交于 2020-01-23 10:57:06
问题 I am creating an application in Silverlight using Ria Services that can take quite a bit of time once the service call is initiated. I've looked for ways to increase the WCF service timeout, but the more I think it through, this is not the right aproach. What I would rather do is call the DomainContext and return right away, then have the client poll the server to find out when the long running query is complete. I'm looking for a pattern or example of a good way to implement something like

MainWindow.Closing event not always raised in Silverlight 4 OOB app

和自甴很熟 提交于 2020-01-23 06:09:12
问题 I've made a rather complex Silverlight 4 out-of-browser application. One of my main view models adds an event handler to the Application.Current.MainWindow.Closing event. This works fine when the application is initially run. It is able to cancel the close operation. However, sometimes after performing operations like showing and closing a ChildWindow, the MainWindow's Closing event is no longer calling my handler. In the debugger, I added a watch to the MainWindow's underlying closing event

What does WPF still have to offer over Silverlight 4?

瘦欲@ 提交于 2020-01-19 06:03:36
问题 Given the list of new features announced in Silverlight 4, when is WPF still required? 回答1: WPF still has a lot fuller 3D rendering capabilities. Also even though they announced enhancements to the commanding and binding capabilities, that's no guarantee that it will have the full ability that WPF currently has or will have in the next version Edit: After playing around with Silverlight 4 beta, it looks like pretty much all of the new features (webcam, file access, full screen keyboard, COM

What does WPF still have to offer over Silverlight 4?

早过忘川 提交于 2020-01-19 06:02:06
问题 Given the list of new features announced in Silverlight 4, when is WPF still required? 回答1: WPF still has a lot fuller 3D rendering capabilities. Also even though they announced enhancements to the commanding and binding capabilities, that's no guarantee that it will have the full ability that WPF currently has or will have in the next version Edit: After playing around with Silverlight 4 beta, it looks like pretty much all of the new features (webcam, file access, full screen keyboard, COM

Silverlight Datagrid Block Selection

社会主义新天地 提交于 2020-01-17 04:17:07
问题 We're trying to add "block select" to the Silverlight DataGrid control: The user should be able to select, for example, a rectangle of cells from ( col 4, row 5 ) to ( col 6, row 8 ). What we're doing is saving the two corners of the selection, and indicating it visually by setting the background color of the cells. We've run into trouble with scrolling, because the cell objects are recycled, along with their formatting. So you scroll up, and as the selected cells vanish off the bottom, bars

silverlight 4 with java service

有些话、适合烂在心里 提交于 2020-01-17 03:33:04
问题 i intent to replace wcf service with some java service . how should i design my wcf service such that it's gets replaced or can be replaced with the java service later such that i dont have to do any work or very little work on the client i.e on my silver light application . any idea's / suggestions? P.S 1. that is the reason i am not using RIA services. 2.my wcf service should work like wcf data services work. it should allow me to do CRUD operations on my entities. 回答1: Create java services

Removing Bindings in Silverlight

不羁的心 提交于 2020-01-16 03:21:41
问题 I am looking at this, Clear Binding in Silverlight (Remove Data Binding from SetBinding) But to clear bindings you have to specify a dependency property. Is there a way to generically find all the bindings on a DependencyObject and clear them? Thanks. 回答1: How about iterating over all the static dependency properties (using Reflection ) of that control's type and resetting bindings on them? 来源: https://stackoverflow.com/questions/4405288/removing-bindings-in-silverlight