Sign in
Lucian's VBlog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
async
COM
covariance
iterators
mvvm
phone
plugin
PostVB10
spec
talk
tools
web
win8
Archive
Archives
February 2013
(3)
December 2012
(3)
November 2012
(6)
July 2012
(1)
May 2012
(1)
April 2012
(1)
March 2012
(3)
November 2011
(1)
October 2011
(1)
May 2011
(4)
April 2011
(6)
October 2010
(2)
June 2010
(1)
April 2010
(2)
March 2010
(7)
February 2010
(29)
January 2010
(12)
November 2009
(2)
August 2009
(1)
February 2009
(1)
December 2008
(1)
November 2008
(3)
October 2008
(4)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Lucian's VBlog
Why must async methods return Task?
Posted
5 months ago
by
Lucian Wischik, MSFT
6
Comments
We all know that async methods return Task or Task(Of T): Async Function GetNameAsync() As Task ( Of String ) Await Task .Delay(10) Return "ernest" End Function Sometimes, advanced users ask for the ability to return different types out of an async...
Lucian's VBlog
How to hibernate async methods (how to serialize Task)
Posted
5 months ago
by
Lucian Wischik, MSFT
5
Comments
Sometimes people ask the question “How can I serialize a Task?” If you try, it throws a SerializationException: Dim t = TestAsync() Using stream As New MemoryStream Dim formatter As New Formatters.Binary. BinaryFormatter formatter...
Lucian's VBlog
How to await a storyboard, and other things
Posted
5 months ago
by
Lucian Wischik, MSFT
3
Comments
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...
Lucian's VBlog
How to await a button click
Posted
5 months ago
by
Lucian Wischik, MSFT
1
Comments
[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”...
Lucian's VBlog
How to await a MediaElement (PlaySound in Windows 8)
Posted
5 months ago
by
Lucian Wischik, MSFT
0
Comments
[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...
Lucian's VBlog
How to await a drag operation
Posted
5 months ago
by
Lucian Wischik, MSFT
0
Comments
[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...
Page 1 of 1 (6 items)