forked from Windows-Readiness/WinDevCamp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f97bfa5
commit 6356e85
Showing
24 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Module 1. Introduction | ||
## Demo 1. Hello Devices | ||
1. Open Blend for Visual Studio 2015 | ||
1. From the new project wizard, choose Create a blank application | ||
1. From Data toolbox menu, click on create new Blank sample data | ||
1. Drag the sample data that were just created to the design surface | ||
1. Start to debug the application using Local Machine in the top bar | ||
1. Notice that the app starts on the desktop and display the data | ||
1. Start to debug the application using Phone emulator in the top bar | ||
1. Notice that the app starts on the Phone emulator and display the data |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#Module 2. Store and Monetization | ||
##Demo 1. Video Ads | ||
|
||
1. Open Visual Studio 2015 | ||
1. From the new project wizzard, choose Create a blank application (Using the Windows 10 blank template) | ||
1. From Data toolbox menu, add a button to the design surface | ||
1. Add a reference the the Micrsoft Advertising SDK for XAML | ||
1. In the button click event handler, get the IntertitialAd object | ||
1. Add an ErrorOccured event handler to check if an error occured | ||
1. Add a Cancel event handler to check if the user canceled the video | ||
1. Add a Completed event handler to check that user has viewed the video | ||
1. Add a AdReady event handler and call ad.show() | ||
1. Add a unitID and appID variable to store the video information | ||
1. Call the RequestAd method using appID and unitID and the Video Type | ||
1. Set breakpoints in the event handlers | ||
1. Start the program | ||
1. Click the button | ||
1. The ad starts playing | ||
1. Wait for the video to finish | ||
1. When the video is finished, notice that the Completed event handler breakpoint is hit | ||
|
||
##Demo 2. In App Purchase | ||
|
||
1. From the new project wizard, choose Create a blank application (Using the Windows 10 sample template) | ||
1. Start the application | ||
1. Note that the sample template contains a serie of todo lists | ||
1. From MainPage.xaml, insert in the Hub control a HubSection that contains a DataTemplate with a Rectangle | ||
1. Start the application | ||
1. Notice the rectangle appears. That is the place where we want to place the ads | ||
1. Bind the Remove ads button to an event handler named RemoveAdsComand | ||
1. From the Main Page View Model, use the Show Ads snippets | ||
1. From the Main Page View Model, use the Command snippets | ||
1. From the Toolbox, bind the Visibility property of the HubSection to the ShowAds using a converter | ||
1. Set the default value of ShowAds to true | ||
1. Start the application | ||
1. Click on shop, notice that the add has been removed | ||
1. From the solution window, Add a new InAppPurchase Service Folder | ||
1. Create a class named InAppPurchase Service | ||
1. Paste the appropriate code | ||
1. Back inside the view Mode, create an instance of this service. Use the id of the app in the store | ||
1. Start the application | ||
1. Click the shop button | ||
1. Notice that a Windows Store window appears (it using a Simulator, not the real store) | ||
1. Click OK | ||
1. Notice that the Ad has disappeared. |
Oops, something went wrong.