Skip to Main Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced content levelIntermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Implementing Cancellation

Let’s look at the WPF sample application created in the section “Getting Started with Async/Await.” Imagine you want to give users the ability of cancelling the download of the RSS feed from the Microsoft Channel9 website. First, make a slight modification to the user interface so that the main Grid is divided into two rows, and in the first row add a Button like this:

<Grid.RowDefinitions>    <RowDefinition Height="40"/>    <RowDefinition/></Grid.RowDefinitions><Button Width="120" Height="30" Name="CancelButton"        Content="Cancel"/>

Do not forget to add the Grid.Row="1" property assignment for the ListBox control. Double-click the new button so that you can quickly access the code ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book