Games For Windows Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 23 July 2013

Dragging a ListView control in a fullscreen WPF touch app causes the whole window to shift

Posted on 05:24 by Unknown
I recently had a bug with the ListView control in WPF where I had a ContentControl using a ScrollViewer with the ItemsPresenter inside of it. When using touch, and navigating through the items, the whole window would shift when you reach the end of the list, which then allowed the user to access the underlying Windows shell.

The cause of this is due to a potential bug in the ScrollViewer control, where the UIElement.ManipulationBoundaryFeedback event is fired, and is not handled by the ListView. As this is a routed event, it continues up the chain and eventually reaches the Window control, which then handles the event and results in an animation of the entire window.

MSDN states:
The ManipulationBoundaryFeedback event enables applications or components to provide visual feedback when an object hits a boundary. For example, the Window class handles the ManipulationBoundaryFeedback event to cause the window to slightly move when its edge is encountered.

The fix (or hack) for this, is to hook in to the event and handle the event, so that it does not bubble up to the Window control.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • LG Optimus G
      LG's next flagship phone, the Optimus G. (Credit: Brian Bennett/CNET) LG officially announced its next flagship phone, the LG Optimus ...
  • Rumour: Microsoft Preparing To Launch Its Own Smartphone
    Microsoft   has once again entered the hardware manufacturing business in a big way, with the   launch of its  Surface  tablet series   on M...
  • Eric Schmidt Gets Vocal About Maps
    Some of us have figured out by now that we're all part of a giant experiment for  Google .  Executive Chairman Eric Schmidt  has often b...
  • LG Optimus Vu With Android 4.0 And 5" Screen Lands In India
    Announced at MWC 2012 in February,  LG's  first phablet,  the Optimus Vu , has finally hit the Indian market. The handset has a 5" ...
  • Rumour: Base Versions Of Microsoft Surface And Surface Pro Will Cost $600 And $1000
    With little information available about the prices of the  Microsoft Surface ,  TheNextWeb.com  has received  input from sources close to MS...
  • Google Nexus 7 Tablet Announced At Google I/O
    We've been hearing about the  Nexus  tablet for a while now, and thanks to some slip-ups, we had a hint of what was to come. As expected...
  • 5 Fun Websites To Learn Something New
    The 5th of September is celebrated as Teacher's Day in India. Many people criticise the education system as being dated and burdensome...
  • Apple Will Announce iPhone 5 On September 12th Event
    Apple is known to be extremely secretive about upcoming product launches. We all know that the company takes the wraps off one flagship ha...
  • Rumour: Press Shots Of Sony's 9.4" Android Xperia Tablet Leaked
          According to the latest rumour doing the rounds, Sony seems to be readying a new  Android  tablet. This is a rather brave move, consid...
  • LG Optimus 3D Max (P725)
    :   Pros    Good 3D main camera; 1080p video playback support; Dolby Music improves sound quality. Cons: Uncomfortable for one-handed use; U...

Categories

  • .net
  • a
  • aakash
  • acer
  • agility
  • anchor free hotspot sheild app
  • andoid
  • android
  • android buyers
  • android update on samsung galaxy tab
  • apple
  • apps
  • asus
  • blackberry
  • blog
  • buy best android
  • c#
  • cpp
  • dell
  • developer
  • facebook
  • galaxy s3 explodes
  • gaming
  • get android
  • google
  • google android 4.1
  • google news
  • googletab
  • hathway
  • hcl
  • hp
  • htc
  • html
  • htmlagilitypack
  • huawei
  • iball
  • indian isp block
  • intex
  • ios apps
  • ios london 2012
  • iphone
  • iphone 5
  • jokes
  • junior
  • karbonn
  • lenovo
  • lg
  • linq
  • london 2012 mobile game
  • maps
  • mercury
  • micromax
  • microsoft
  • microsoft news
  • microsoft smartphone
  • motorola
  • new android 4.1
  • new apple iphone 5
  • new microsoft phone
  • new windows phone
  • news
  • nokia
  • nokia 808 pureview
  • nokia vs samsung
  • pack
  • programming
  • samsung
  • samsung galaxy s3
  • samsung galaxy s3 vs nokia 808
  • samsung galaxy tab
  • shopping
  • sony
  • sony xperia s ics update
  • sonygame
  • spice
  • swiftkey 3
  • swiftkey keyboard for android
  • tablets
  • torrent blocked sites
  • Tricks And Other Info
  • tumblr for ios
  • unblock torrent sites
  • upcoming android
  • videocon
  • windows
  • windows 7.8 update
  • windows phone 8
  • wishtel
  • wp 7.8
  • xbox
  • xperia s update
  • yahoo

Blog Archive

  • ▼  2013 (45)
    • ►  August (2)
    • ▼  July (2)
      • Specifying an Assembly's Location with MEF
      • Dragging a ListView control in a fullscreen WPF to...
    • ►  June (1)
    • ►  May (7)
    • ►  April (1)
    • ►  March (15)
    • ►  February (14)
    • ►  January (3)
  • ►  2012 (462)
    • ►  November (2)
    • ►  October (124)
    • ►  September (93)
    • ►  August (60)
    • ►  July (106)
    • ►  June (77)
Powered by Blogger.

About Me

Unknown
View my complete profile