Download presentation
Presentation is loading. Please wait.
Published byVincent Wood Modified over 8 years ago
1
Simple Clicker App WPF App using C#
2
App Requirement Need a ‘counter’ display, which starts at 0 Need a ‘clicker’ button ! Pressing the clicker every time should increment the counter by 1 ! How do we create this simple app ??
3
Click ‘New Project’
4
Choose ‘WPF Application’ template and click ‘ok’
5
Empty WPF Application Created !
6
Choose & drag a ‘button’ onto the app window
7
App now contains a button !
8
Drag a TextBlock onto the app window
9
App now has a TextBlock too
10
Change button label/text to ‘Click’
11
Change TextBlock text to ‘0’
12
Double click on the button to generate ‘button click’ handler method !
13
Write code for the ‘button click’ event handler method
14
Click app window corner and drag to resize as required
15
Resize TextBlock and change Font Size to 28
16
Save All and Run program !
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.