silverlight-3.0

How to replace link to hyperlink in RichTextBox (Windows phone)

时光怂恿深爱的人放手 提交于 2019-12-19 04:23:29
问题 I have a text: Download it directly to the <a href="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8">iTunes Store</a> or <a href="https://market.android.com/details?id=com.strikersoft.meramal.se">Android Market</a>. The application is launched for Swedish app store. I know how to show a hyperlink in RichTextBox: http://msdn.microsoft.com/en-us/library/ee681613%28v=vs.95%29.aspx But how can I make this for everyone link in this code? 回答1: You should parse the string maybe with

How to replace link to hyperlink in RichTextBox (Windows phone)

▼魔方 西西 提交于 2019-12-19 04:23:12
问题 I have a text: Download it directly to the <a href="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8">iTunes Store</a> or <a href="https://market.android.com/details?id=com.strikersoft.meramal.se">Android Market</a>. The application is launched for Swedish app store. I know how to show a hyperlink in RichTextBox: http://msdn.microsoft.com/en-us/library/ee681613%28v=vs.95%29.aspx But how can I make this for everyone link in this code? 回答1: You should parse the string maybe with

How to dismiss a popup in Silverlight when clicking outside of the control?

点点圈 提交于 2019-12-18 11:45:54
问题 In my Silverlight UI, I have a button that when clicked pops up a control with some filtering parameters. I would like this control to hide itself when you click outside of it. In other words, it should function in a manner similar to a combo box, but it's not a combo box (you don't select an item in it). Here's how I'm trying to capture a click outside of the control to dismiss it: public partial class MyPanel : UserControl { public MyPanel() { InitializeComponent(); } private void

Silverlight 3 out-of-browser: set host window size?

浪子不回头ぞ 提交于 2019-12-18 08:14:31
问题 Is it possible for a Silverlight 3 application which is running in out-of-browser mode to set the size of the container window? I've got an app with collapsible panel sections and I want the window to automatically size to the current size of the LayoutRoot control. 回答1: You can set the window size in the project settings: Open Project settings Open Out of browser settings in Silverlight Tab Set the window size, window title or window position 回答2: I Agree with pivotnig This Is more

“Dialogs must be user-initiated.” with SaveFileDialog in Silverlight 3

浪尽此生 提交于 2019-12-17 19:32:48
问题 I am working on a Silverlight 3 app with C#. I would like to allow the user to download an image from the Silverlight app. I am using SaveFileDialog to perform the file download task. The flow goes this way: User clicks on Download button in the SL app. Web service call invoked to get the image from server OnCompleted async event handler of the web method call get invoked and receives the binary image from the server Within the OnCompleted event handler, SaveFileDialog prompted to user for

Silverlight 3 WriteableBitmap problem

时光怂恿深爱的人放手 提交于 2019-12-14 03:48:54
问题 I'm trying to use the new WriteableBitmap in the Silverlight3 RTM, but I'm failing .. all the examples and demo I've used to look at and played with during the beta are no more working. I understood they've changed slightly the class interface, removing for example the Lock and Release methods (that are still documented in the official doc pages) and also changing the constructor (no more pixelformat as an argument, all the bitmap will be 32bit from my understanding). Anyone managed to have

Javascript to Silverlight when Silverlight instantiated with object tag

梦想与她 提交于 2019-12-13 19:11:54
问题 I've used an object tag to load my Silverlight control because I want to be able to input html into a Sharepoint page using the Rich Text Editor. It looks like this: <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="SilverlightObject" width="850" height="600"> <param name="source" value="ClientBin/LabsSurvey.xap"/> <param name="onError" value="onSilverlightError" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value=

Calling webservices from Silverlight 3 when running out-of-browser

萝らか妹 提交于 2019-12-13 06:31:12
问题 We have this nice Silverlight 3 application that communicates with a web server running some WCF web services. It works well when it is running in the browser, but at soon we try to run it outside the browser it doesn't call our webservices. I have tried to find out why this is happening, but I can't find any explanation. When attaching the debugger to the sllauncher.exe process I am able to step through the code and I can see that the (Begin)Async method is called. But using Fiddler I can

Random “Not Found” error with Silverlight accessing ASP.NET Web Services

拜拜、爱过 提交于 2019-12-13 04:45:23
问题 I'm developing an application with Silverlight 3 and ASP.NET Web Services, which uses Linq to SQL to get data from my SQL Server database. Randomly when the user causes an action to get information from any of my web service methods, Silverlight throws the exception "The remote server returned an error: NotFound.", of type "CommunicationException", with the InnerException status of "System.Net.WebExceptionStatus.UnknownError". Almost 10% of requests gets this error. If the user tries to get

Silverlight DataGrid scrollbar synchronization

假装没事ソ 提交于 2019-12-13 04:04:36
问题 I have 2 Silverlight DataGrids one on top of another. I want to synchronize their horizontal scrollbars. I have tried to put them both in separate scrollviewers and set the horizontal offset of source scrollviewer to horizontal offset of target scrollviewer but that does not work, the below DataGrid scrollviewer disappers.I think that might be because these Datagrid are inside a StackPanel? I also tried to put these 2 grids in a third grid and apply scrollviewer on that but that does not work