Browse by Tags

Tagged Content List
  • Blog Post: How to make a Win8.1 app with ScrollViewer respond to size changes

    Users expect Windows8.1 apps to resize gracefully - either when they "snap" the app to a particular size, or when they change the orientation of their device. This turns out surprisingly difficult with a ScrollViewer. The details are below... Download full source code - ScrollViewerKeepPosition...
  • Blog Post: How to await a button click

    [This post is part of a series How to await a storyboard, and other things ] Sometimes we want to await until a button has been clicked. Once place where this is useful is, for instance, when displaying the message “Click button to continue”. Await button1.WhenClicked() Why...
  • Blog Post: How to await a drag operation

    [This post is part of a series How to await a storyboard, and other things ] In my app, I want to await a drag operation. Here’s how I’d like to await it: Private Async Sub rectangle1_PointerPressed(sender As Object , e As PointerRoutedEventArgs ) Handles rectangle1.PointerPressed...
  • Blog Post: How to await a MediaElement (PlaySound in Windows 8)

    [This post is part of a series How to await a storyboard, and other things ] Let’s look at making MediaElement awaitable. This is the kind of idiom I’d like to use: Try Await mediaElement1.OpenAsync( New Uri ( "ms-appx:///Assets/boooo.mp3" )) Await mediaElement1.PlayAsync(...
  • Blog Post: How to await a storyboard, and other things

    This post is part of a series about an important new design pattern, awaiting events ... I also made a Channel9 video introduction " Async Over Events ". In this blog series: How to await a storyboard, and other things How to await a MediaElement How to await a drag operation How to await...
Page 1 of 1 (5 items)