silverlight

Can we create a Silverlight Socket Server ONLY using SILVERLIGHT and XML's (NO WCF WPF CONSOL APPS)?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 06:45:13
问题 Can we create a Silverlight Socket Server ONLY using SILVERLIGHT and XML's (NO WCF WPF CONSOL APPS)? If yes. What do I need MSDN if there is any help on this. Open Source Libs/wrappers for encoding/decoding. Tutorials and blog articles on How to do it. If no I need where did you get the info from (link to MSDN or other official SL resource) Please say in your answer "YES" or "NO" if you think "YES" or "NO" 回答1: YES. http://msdn.microsoft.com/en-us/library/cc296248(VS.95).aspx http://weblogs

GeoCoordinateWatcher is not getting GeoCoordinate Speed in emulator?

风格不统一 提交于 2020-01-04 06:33:08
问题 I'm trying out a Windows Phone 7 Maps application which tracks the device. I'm displaying a textblock which updates the current speed using "e.Position.Location.Speed.ToString("0.00")" from the "GeoPositionChangedEventArgs e" argument passed to the PositionChanged event handler of "GeoCoordinateWatcher" object. While debugging the application in emulator, I used a set of previously recorded push pins and played the emulation. The longitude/lattitude positions change properly but the speed is

C#: Decoding JPEG images with 12-bit precision using Silverlight FJCore library?

泪湿孤枕 提交于 2020-01-04 06:15:45
问题 In my C# Silverlight application, I am trying to decode DICOM images in compressed JPEG transfer syntax, using the FJCore class library. The DICOM images are normally compressed with 12-bit precision. When trying to decode such an image using the original FJCore source code, I get an exception saying "Unsupported codec type", because in the original FJCore implementation only SOF0 (Baseline DCT) and SOF2 (Progressive DCT) Start-of-Frame markers are supported. If I change the implementation to

Servicereferences.clientconfig changing values silverlight

為{幸葍}努か 提交于 2020-01-04 06:13:22
问题 I have a servicereference.clientconfig. Now my install team is creating an install for my silverlight application. It is an issue because in the servicereference.clientconfig there is a set of web services and they all point to localhost. What is the easiest way to set this to the server that the install is going to? Off the top of my head the install script would have to unzip the xap file, modify servicereference.clientconfig. then rezip. Is this really the easiest way? 回答1: I can't tell

Error when sending an Linq-to-Sql object to the server using WCF

拥有回忆 提交于 2020-01-04 06:10:36
问题 I am trying to develop a system that has 2 tiers: a mobile client and a server that uses LINQ to SQL to store information in the database. I want to create a WCF server that stores a task in the server, so it will receive a Task from the client and will use LINQ to SQL to store it. To do this service, I created the dbml file, so I can use the datacontext. This is my service method: public Task SaveTask(string token, Task task) { TrackingDataContext dataConext = new TrackingDataContext(); /

Silverlight localization

放肆的年华 提交于 2020-01-04 05:37:25
问题 What are the avaliable options for translating a silverlight 5 application (Prism + MEF)? If possible I would like to: not have resx files (I don't like the way they are managed) rather have xaml string extracted and then translated (I think there was a tool from Microsoft, that marked all XAML nodes with custom attribute and extracted the strings) have translations in external assemblies (in Prism they could be modules) and load them when needed change language at runtime I'm open to

Adding custom SOAP headers from Silverlight client

*爱你&永不变心* 提交于 2020-01-04 05:36:12
问题 I am trying to set up a web service between a Silverlight client and a Java server. I need to send username tokens (username/password) from the Silverlight client for authentication purposes. Since this is a proof-of-concept, I want to keep things simple and use HTTP as my transport layer. However it looks like Silverlight only supports username tokens over HTTPS (Visual Studio is unable to digest the WSDL from my Java server that does username tokens over HTTP). So my question is this: how

Saving file from JavaScript string without hitting server

白昼怎懂夜的黑 提交于 2020-01-04 05:33:14
问题 If I have an in-memory string in JavaScript that is let's say Excel or PDF format, and I want to pop open a save dialog so the user can save those bytes to a file, how would I go about doing this? I am trying to avoid going back to the server. If I was going back to the server I could send the correct HTTP headers in the response to tell the browser that I'm sending a file. But I want to do this from JavaScript instead because I already have the bytes I need on the client. Is this possible?

Disabling specific cell edit in DataGrid

半城伤御伤魂 提交于 2020-01-04 05:22:06
问题 I need to know is it possible to disable a specific cell edit in a DataGrid, without disabling edit for the entire column in Silverlight 4. I can get the specific cell object as a FrameworkElement but it does not contain property IsReadOnly or IsEnabled. You will probably ask: Why do I need that? Well my application requires disabling particular cells in row depending on the other cell content. Each row is being checked this way separately. If you have an idea how I can achieve such a unusual

silverlight access to file path

≯℡__Kan透↙ 提交于 2020-01-04 04:34:13
问题 I have a Silverlight application and I need a way to find out the physical path for a selected file. Note: I know about security restrictions that obtaining the path is prohibited in client. I have in mind a solution but I am not sure it works: silverlight app is running in a page together with an ActiveX component that is allowed to do restricted operations. The Silverlight app asks the ActiveX component to do the privileged operations and returns back the path. Is that a valid scenario or