silverlight

“Your API key is not valid on this domain” when calling Disqus from WP7

混江龙づ霸主 提交于 2019-12-23 04:24:16
问题 I'm trying to access the REST Disqus API using the following url: http://disqus.com/api/3.0/threads/listPosts.json ?api_key=myKey &forum=myForum &thread:ident=myIdent When I go to the url in Chrome, it works fine. When I try to download it in WebClient , I have difficulty: WebClient data = new WebClient(); Uri queryUri = new Uri(DisqusQuery + ident, UriKind.Absolute); data.DownloadStringCompleted += new DownloadStringCompletedEventHandler(onDownloadCompleted); data.DownloadStringAsync

x or cross inside a textbox to clear the text box

痴心易碎 提交于 2019-12-23 03:47:09
问题 I want to put a cross button in my text boxes, for a wp7 app i am working on, something like this: http://silverscratch.blogspot.com/2010/03/watermarked-textbox-part-i.html I dont like this solution. I think there must be a better way. any ideas ? 回答1: Try the other article by the same author here (archive) It is a custom control rather than a user control. 来源: https://stackoverflow.com/questions/5722032/x-or-cross-inside-a-textbox-to-clear-the-text-box

Vector Printing Glyphs in Silverlight 5

我是研究僧i 提交于 2019-12-23 03:47:05
问题 I am trying to print a Canvas that contains a glyph element using Silverlight 5's vector printing capacity. Everything works fine except that glyphs do not get printed. Are glyphs supported by vector printing? If so, what am I doing wrong? I am trying to print the following canvas that shows up correctly on the screen: <Canvas x:Name="canvasToPrint" Margin="-96,-34,0,0" Grid.ColumnSpan="2" Background="AliceBlue"> <Rectangle Fill="Blue" Width="39" Height="36"/> <Glyphs Name="a0" Fill="

Silverlight Event Log in Isolated Storage

≡放荡痞女 提交于 2019-12-23 03:22:07
问题 Has anyone written an event log that uses Isolated Storage in Silverlight 3? Any suggestions on implementing one? Specific questions: Should I keep a stream writer open, or should I open,write, and close for each entry? How should I remove items from the log atomically? 回答1: I heard clog from codeplex is pretty good although it targets wcf, i read on codeproject about about a log4net approach that works for silverlight, although both of these log 2 wcf services, im sure with a bit of tweaking

Silverlight Event Log in Isolated Storage

偶尔善良 提交于 2019-12-23 03:22:02
问题 Has anyone written an event log that uses Isolated Storage in Silverlight 3? Any suggestions on implementing one? Specific questions: Should I keep a stream writer open, or should I open,write, and close for each entry? How should I remove items from the log atomically? 回答1: I heard clog from codeplex is pretty good although it targets wcf, i read on codeproject about about a log4net approach that works for silverlight, although both of these log 2 wcf services, im sure with a bit of tweaking

Converting Linq2SQL simple queries to CompiledQueries to increase app performance

风流意气都作罢 提交于 2019-12-23 03:18:15
问题 I am writing a Silverlight for Windows Phone (SDK 7.1) app and I am displaying data from a CompactSQL DB in a LongListSelector control from the Silverlight Toolkit for Windows Phone. Once the list becomes about 150 items long, The app really slows down loading data, navigating to and from pages and animations fail to display (I know using a background thread would help with freeing up the UI thread for animations). I currently have three queries that I use constantly - everytime the data from

How do I increase the amount of data I can pass back from a RIA Service?

喜你入骨 提交于 2019-12-23 03:11:16
问题 I'm new to WCF, RIA Services, and even Silverlight for the most part. I need to know how to increase the amount of data that I can pass back from a RIA service. I know that I need to create summary lists and I am being smart about how I request data. I can't use paging because I've archetected myself into a corner, and it would be way too much refactoring at this point. I just need to double the limit of data coming back. My requests are fairly small. How can I do this, and also why is this

ReactiveUI and Validation

不羁岁月 提交于 2019-12-23 03:11:13
问题 What's considered "best practice" when performing data validation while using ReactiveUI ? Let's say I have a view model that looks like this: public class MyViewModel: ReactiveObject { public ReactiveAsyncCommand SaveMyDataCommand { get; protected set; } private string _email; public string Email { get { return _email; } set { _email = value; raisePropertyChanged("Email"); } } private string _name; public string Name { get { return _name; } set { _name= value; raisePropertyChanged("Name"); }

How to display a live streaming video via Silverlight?

廉价感情. 提交于 2019-12-23 03:09:50
问题 How can I stream video from live webcam with Silverlight? Not from my camera, but transmit from some live camera I found in internet (for example, http: //ac.lido.lv/kamera.php?lang=ru or http://pendelcam.kip.uni-heidelberg.de/axis-cgi/mjpg/video.cgi?resolution=640x480) 来源: https://stackoverflow.com/questions/4575390/how-to-display-a-live-streaming-video-via-silverlight

Can a Silverlight out-of-browser app be converted to Universal Windows Platform (UWP) app?

梦想与她 提交于 2019-12-23 03:01:20
问题 This article from Microsoft: Guide to Universal Windows Platform (UWP) apps states that you can convert your classic desktop application (like Win32, Windows Forms, and WPF) or game to a Universal Windows Platform (UWP) app or game . Can the same be achieved for a Silverlight out-of-browser application? 回答1: Unfortunately there is no easy and fully automated way to port your Silverlight app to UWP mostly because the API footprint has changed and updated between the 2 platforms. There are a