Skip to content
wpdev

.NET / C#

.NET (Page 3)

How to press the mouse on a control, and detect MouseLeftButtonUp on another

2012-01-08
By: Kevin Gosse
On: January 8, 2012
Tagged: .NET, C#, Silverlight, Windows Phone 7, wpdev

Another issue I found on StackOverflow, which is way more tricky that it seems. Let’s say we have a Silverlight WP7 application, and we want to add a drag&drop scenario. The user first taps an element, drags his finger to another, and raises his finger on another element. Easy enough! Just handle the MouseLeftButtonDown on each element, store which element triggered the event in a property, handle the MouseLeftButtonUp on each element, and then we have the originator and the destination! … right? Well, so I would have thought. Unfortunately, the MouseLeftButtonUp event will only be triggered if the ‘mouse’ left button (or your finger,Read More →

ApplicationBar flickering when the phone theme is white

2012-01-05
By: Kevin Gosse
On: January 5, 2012
Tagged: .NET, Silverlight, Windows Phone 7, wpdev

It’s an interesting issue I found on StackOverflow. Interesting because I often forget to test my applications using the Windows Phone’s white theme, so this kind of problem usually goes unnoticed until a user reports it. Create a simple WP7 application with a black background and an ApplicationBar. Add a button to toggle the bar’s visibility. The XAML should look like: And the ButtonClick method: Now launch the WP7 emulator, go in the settings, and set the phone theme to ‘light’. Then start the application, and try pressing the button: the application bar disappears as expected, but you may notice a quick white flickering. TheRead More →

Posts navigation

Previous 1 2 3

Recent Posts

  • Uncovering a bug in Attribute.GetHashCode
  • [UWP] NavigationService with back button handler priority
  • [UWP] Bandwidth adaptive image control
  • [uwp] Animation orchestration using Caliburn.Micro coroutines
  • Should I await the last call in a method

Archives

  • March 2017 (1)
  • February 2016 (1)
  • January 2016 (1)
  • October 2015 (1)
  • September 2015 (2)
  • August 2015 (1)
  • May 2015 (1)
  • April 2015 (1)
  • March 2015 (3)
  • October 2014 (1)
  • September 2014 (1)
  • November 2013 (1)
  • August 2013 (1)
  • May 2013 (1)
  • February 2013 (1)
  • December 2012 (1)
  • October 2012 (2)
  • July 2012 (1)
  • May 2012 (1)
  • February 2012 (1)
  • January 2012 (4)

Follow me on Twitter

My Tweets

Designed using Dispatch. Powered by WordPress.