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

  • 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...
  • 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" ...
  • 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...
  • Rumour: HTC Gearing Up For One XXL With Snapdragon Quad-Core Chip And 4.7" HD Display
    A few "industry-first announcements"  took place at the  MWC earlier this year , which showed off the  HTC One X ,  LG Optimus 4X ...
  • Samsung Launches 8" GALAXY Note 510 With Phone Functionality For Rs 30,900
    If the Note II wasn't big enough for you, you'd rejoice to see the Samsung GALAXY Note 510  (also known as Note 8.0). This 8" d...
  • 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...
  • Download: nexGTv Watch free live TV on your smartphone.
    View the full image nexGTv is a video streaming app that offers live TV on the move. Unlike other apps though, this one actually works, and ...
  • Rumour: Nokia Lumia 820 And 920 Images Leaked
    New images of upcoming phones from  Nokia  in its  Lumia  series, the  920  and  820 , have been leaked by  the account  @evleaks  on Twitte...
  • Apple's iPhone: fantastic at five
    I decided to buy my one in a car park. It was late at night, I was a sleep deprived new dad, and I was trying and failing to find a late-nig...
  • Apple Sued Over FaceTime Patent Infringement In China
    Apple  is no stranger to lawsuits, having fought numerous court battles over patent violations both for and against it. It has just been sla...

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