silverlight-4.0

wcf and session asmx rewrite with Silverlight

谁都会走 提交于 2021-02-10 16:18:01
问题 I have a web service that uses Session. I want to rewrite it as an WCF that can be hosted outside IIS. What is the best way to replace session using WCF that wont tie me to IIS in my rewrite? At first I was happy because of wsHttpBinding. Then I read that Silverlight can not use this and I was sad. How can this be accomplished. 回答1: Badly. I think Silverlight doesn't support any http based binding which would allow you creating stateful WCF service. You can make stateful WCF service with net

error RG1000: Unknown build error

谁说胖子不能爱 提交于 2021-02-07 14:28:32
问题 C:\Program Files\MSBuild\Microsoft\Silverlight for Phone\v4.0\Microsoft.Silverlight.Common.targets(625,5): error RG1000: Unknown build error, 'An item with the same key has already been added.' Done building project "FileName.csproj" -- FAILED. Build failed. Receive this error whenever i try building the soln. 回答1: We ran into the same problem yesterday. It happened after we merged two branches in our TFS, so we looked into the project file. There was twice the same image added to the project

error RG1000: Unknown build error

寵の児 提交于 2021-02-07 14:28:29
问题 C:\Program Files\MSBuild\Microsoft\Silverlight for Phone\v4.0\Microsoft.Silverlight.Common.targets(625,5): error RG1000: Unknown build error, 'An item with the same key has already been added.' Done building project "FileName.csproj" -- FAILED. Build failed. Receive this error whenever i try building the soln. 回答1: We ran into the same problem yesterday. It happened after we merged two branches in our TFS, so we looked into the project file. There was twice the same image added to the project

undo/redo command stack for InkCanvas

人盡茶涼 提交于 2021-02-07 04:01:40
问题 I am creating paint like application using InkCanvas , I am willing to implement Undo and Redo functionality in my application . Which is the best way to implement Undo / Redo for InkCanvas ?? 回答1: I've implemented undo / redo for a WPF application and ended up publishing my undo / redo code to http://muf.codeplex.com/. You can also get it via NuGet. Just look for "MUF" or "Monitored Undo Framework". It includes support for Silverlight 4.0, as well as .NET 3.5, 4.0, and WP7. In my WPF app, we

undo/redo command stack for InkCanvas

眉间皱痕 提交于 2021-02-07 04:01:08
问题 I am creating paint like application using InkCanvas , I am willing to implement Undo and Redo functionality in my application . Which is the best way to implement Undo / Redo for InkCanvas ?? 回答1: I've implemented undo / redo for a WPF application and ended up publishing my undo / redo code to http://muf.codeplex.com/. You can also get it via NuGet. Just look for "MUF" or "Monitored Undo Framework". It includes support for Silverlight 4.0, as well as .NET 3.5, 4.0, and WP7. In my WPF app, we

undo/redo command stack for InkCanvas

走远了吗. 提交于 2021-02-07 04:00:05
问题 I am creating paint like application using InkCanvas , I am willing to implement Undo and Redo functionality in my application . Which is the best way to implement Undo / Redo for InkCanvas ?? 回答1: I've implemented undo / redo for a WPF application and ended up publishing my undo / redo code to http://muf.codeplex.com/. You can also get it via NuGet. Just look for "MUF" or "Monitored Undo Framework". It includes support for Silverlight 4.0, as well as .NET 3.5, 4.0, and WP7. In my WPF app, we

ItemsSource vs DataContext in binding case

时光总嘲笑我的痴心妄想 提交于 2021-01-21 03:53:33
问题 My main question is about binding case in the scene that we have multiple sources for a control(a combobox inside a datagrid)(or having both datacontext and itemssource). Then how can we know which source the binding will use? (any syntax to clarify that) Assuming a datagrid has an itemssource="List of Players" datacontext="Manager" , and has a combobox as a kind of column. We also assume that each player has an Inventory property which is a collection type. then inside the datagrid.columns:

How can a view cancel a navigation request in PRISM?

二次信任 提交于 2020-12-14 08:24:40
问题 I have a view that implements the INavigationAware interface. This interface has the OnNavigationFrom method that is, according to MSDN http://msdn.microsoft.com/en-us/library/microsoft.practices.prism.regions.inavigationaware.onnavigatedfrom(v=pandp.40).aspx, Called when the implementer is being navigated away from. Now, I want to make sure that the user hasn't left any unsaved changes and if there are unsaved changes, ask the user if he wants to save them. At this moment I need to be able

How to Configuring WCF services to work with both HTTP and HTTPS - multiple bindings not working

回眸只為那壹抹淺笑 提交于 2020-02-08 07:23:27
问题 Iam fairly new to Silver-light and WCF, so please bear with me. I have silver-light application that calls .svc service. The service is being called successfully over https but i would also like to make it work with calls over plain http. What modifications do i need to make to my web.config and ServiceReferences.ClientConfig files below. My complete system.serviceModel section in my Web.config file is this. <system.serviceModel> <bindings> <customBinding> <binding name="MyApp.Web.GetData

Silverlight 4 and out of browser

十年热恋 提交于 2020-02-02 04:07:57
问题 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: