silverlight

Unit Testing Logs in WP7 application testing

China☆狼群 提交于 2020-01-15 04:01:06
问题 I m using Silverlight Unit Test framework for testing my application. The unit testing framework gets executed successfully and displays the result in the phone application page. I would like to get the results stored in a log file inside the device itself instead of displaying it on the phone application page on the device. Please find the image below which shows the results displayed for an application http://www.jeff.wilcox.name/wp-content/uploads/2010/03

Silverlight Automation Similar to Watin

谁说胖子不能爱 提交于 2020-01-14 18:49:38
问题 I am considering porting a WPF application to Silverlight. However, the WPF application uses Watin to spawn IE processes and automate certain tasks. My question is if there is a way to automate tasks in Silverlight by spawning popups and performing tasks in them similar to how you would with Watin. 回答1: I haven't tried this tool yet, but it is the closest I've found to Watin for Silverlight. It is WebAii from Telerik and it is a free download. I ran across it the other day and plan to try it

Silverlight Automation Similar to Watin

前提是你 提交于 2020-01-14 18:48:56
问题 I am considering porting a WPF application to Silverlight. However, the WPF application uses Watin to spawn IE processes and automate certain tasks. My question is if there is a way to automate tasks in Silverlight by spawning popups and performing tasks in them similar to how you would with Watin. 回答1: I haven't tried this tool yet, but it is the closest I've found to Watin for Silverlight. It is WebAii from Telerik and it is a free download. I ran across it the other day and plan to try it

UI function firing before quick event finishes

扶醉桌前 提交于 2020-01-14 17:52:52
问题 I have a web browser frame docked in a Silverlight application, and sometimes full-window XAML/Silverlight UI elements can pop up over it. The old problem, which I've more-or-less fixed, is that the web frame's contents didn't seem to play nice with the Silverlight content, always wanting to be rendered on top. This isn't really an issue now since I have an event that fires whenever an application-obscuring popup appears, but now there's a new problem. My code that launches pop-ups looks like

xaml parse exception when attempting to load xaml from codebehind

自古美人都是妖i 提交于 2020-01-14 14:42:06
问题 I have the following line of code defined in codebehind in silverlight: Path path = XamlReader.Load( "<Path Data=\"F1 M 44.207,34.0669C 44.4841,33.7278 44.7612,33.3886 45.0383,33.0494\" />" ) as Path; No idea why it's happening... 回答1: As the exception states, you are missing the default namespace in your XAML document. The <Path> element needs an XML namespace. Add the attribute xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" to your Path element. http://msdn.microsoft.com

Silverlight - Determine if a UIElement is visible on screen

耗尽温柔 提交于 2020-01-14 14:09:29
问题 I have a form in my application with a tab control containing two tabs. in one of the tabs I have a UIElement. When mouse hover on it a timer is started, and after a second some functionality is performed. The problem is when hovering with the mouse and immediately switching tab, than I need to stop the timer. doing it in the tab control events is not possible to me (the tab control does not recognize the timer). I want to be able to know when this UIElement is not visible on screen

Silverlight - Determine if a UIElement is visible on screen

一个人想着一个人 提交于 2020-01-14 14:05:44
问题 I have a form in my application with a tab control containing two tabs. in one of the tabs I have a UIElement. When mouse hover on it a timer is started, and after a second some functionality is performed. The problem is when hovering with the mouse and immediately switching tab, than I need to stop the timer. doing it in the tab control events is not possible to me (the tab control does not recognize the timer). I want to be able to know when this UIElement is not visible on screen

Opening an image file into WritableBitmap

倖福魔咒の 提交于 2020-01-14 13:43:26
问题 Here is the problem. I want to open a file from local drives, then make it into a WritableBitmap so i can edit it. But the problem is, i cannot create a WritableBitmap from Uri or something like that. Also i know how to open a file into BitmapImage but i cannot figure out how to open a file as WritableBitmap. Is there way to open a file directly into a WritableBitmap,if there is not, is there a way to convert a BitmapImage to a WritableBitmap? Thanks guys. 回答1: You can load your image file

Using Silverlight DispatcherTimer - is there a better way (DependencyProperty on Animation)?

試著忘記壹切 提交于 2020-01-14 12:21:09
问题 I'm animating a 'race' on a map. The race takes 45 minutes, but the animation runs for 60 seconds. You can watch the 2008 City2Surf race demo to see what I mean. The 'race clock' in the top-left must show "real time", and had to be set-up in the .xaml.cs with a System.Windows.Threading.DispatcherTimer which seems a bit of a hack . I thought maybe there'd be a DependencyProperty on the animation rather than just StoryBoard.GetCurrentTime() , but instead I have had to // SET UP AND START TIMER,

Using Silverlight DispatcherTimer - is there a better way (DependencyProperty on Animation)?

偶尔善良 提交于 2020-01-14 12:21:08
问题 I'm animating a 'race' on a map. The race takes 45 minutes, but the animation runs for 60 seconds. You can watch the 2008 City2Surf race demo to see what I mean. The 'race clock' in the top-left must show "real time", and had to be set-up in the .xaml.cs with a System.Windows.Threading.DispatcherTimer which seems a bit of a hack . I thought maybe there'd be a DependencyProperty on the animation rather than just StoryBoard.GetCurrentTime() , but instead I have had to // SET UP AND START TIMER,