Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software 2013-03-20.

Slides:



Advertisements
Similar presentations
Intel Do-It-Yourself Challenge Networking
Advertisements

Intel Do-It-Yourself Challenge Lab 5: Controlling Galileo from a webpage Nicolas Vailliet
Win8 on Intel Programming Course Win8 for developers, in detail Cédric Andreolli Intel.
Win8 on Intel Programming Course Desktop : Introduction Cédric Andreolli Intel Software.
10+10 Descending the Design Funnel Chapter 1.4 in Sketching User Experiences: The Workbook.
Intel Do-It-Yourself Challenge Arduino Motor Shield Nicolas Vailliet Intel Software.
Intel Do-It-Yourself Challenge node.js
The State Transition Diagram
Win8 on Intel Programming Course Desktop : Sensors Cédric Andreolli Intel Software
Intel Do-It-Yourself Challenge Intel Galileo and Edison Paul Guermonprez Intel Software.
Internet of Things with Intel Edison Getting started with your board Pierre Collet Intel.
Internet of Things with Intel Edison Web controller
Internet of Things with Intel Edison GPIO on Edison
Win8 on Intel Programming Course Win8 and Intel Paul Guermonprez Intel Software
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Why Should I Sketch? Chapter 1.2 in Sketching User Experiences: The Workbook.
Intel Do-It-Yourself Challenge : Let’s build an autonomous drone Paul Guermonprez Intel.
The Keyboard Study Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Notice: some material in this deck is used from other.
Intel Do-It-Yourself Challenge Arduino sketches and full SD image Nicolas Vailliet Intel.
The Branching Storyboard Chapter 4.3 in Sketching the User Interface: The Workbook Image from:
Internet of Things with Intel Edison Presentation Paul Guermonprez Intel Software
Win8 on Intel Programming Course Desktop : Perceptual Computing Cédric Andreolli Intel.
ESE Einführung in Software Engineering N. XXX Prof. O. Nierstrasz Fall Semester 2009.
ESE Einführung in Software Engineering X. CHAPTER Prof. O. Nierstrasz Wintersemester 2005 / 2006.
Metamodeling Seminar X. CHAPTER Prof. O. Nierstrasz Spring Semester 2008.
ESE Einführung in Software Engineering X. CHAPTER Prof. O. Nierstrasz Wintersemester 2005 / 2006.
N. XXX Prof. O. Nierstrasz Thanks to Jens Palsberg and Tony Hosking for their kind permission to reuse and adapt the CS132 and CS502 lecture notes.
Internet of Things with Intel Edison Led sensor lab
CP — Concurrent Programming X. CHAPTER Prof. O. Nierstrasz Wintersemester 2005 / 2006.
12. eToys. © O. Nierstrasz PS — eToys 12.2 Denotational Semantics Overview:  … References:  …
Sequential Storyboards Chapter 4.1 in Sketching the User Interface: The Workbook Image from:
Intel Do-It-Yourself Challenge Hello World with the Arduino IDE Nicolas Vailliet Intel.
Intel Do-It-Yourself Challenge Lab 1: Intel Galileo’s Arduino side Nicolas Vailliet
CPSC 581 Human Computer Interaction II Interaction Design Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Notice: some material.
Collecting Images & Clippings Chapter 2.3 in Sketching User Experiences: The Workbook.
Graphical Screen Design Part 1: Contrast, Repetition, Alignment, Proximity Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada.
Win8 on Intel Programming Course Modern UI : Sensors Cédric Andreolli Intel Software.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
Intel Do-It-Yourself Challenge OpenCV
Win8 on Intel Programming Course The challenge Paul Guermonprez Intel Software
1 COS240 O-O Languages AUBG, COS dept Lecture 33 Building Apps Technologies C# (WPF part 1)
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
1 Intro XAML Attribute syntax & property syntax Panels Reusable resources Controls Data binding Steen Jensen, spring 2014.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Win8 on Intel Programming Course Modern UI HelloWorld in HTML5/JS Cédric Andreolli Intel.
What is a sketch? Chapter 1.2 addendum Sketching User Experiences: The Workbook.
Internet of Things with Intel Edison Compiling and running Pierre Collet Intel Software.
September 6, 2013 A HUBzero Extension for Automated Tagging Jim Mullen Advanced Biomedical IT Core Indiana University.
© Trustees of Indiana University Released under Creative Commons 3.0 unported license; license terms on last slide. The IQ-Table & Collection Viewer A.
The Animated Sequence Chapter 5.1 in Sketching User Experiences: The Workbook.
Intel Do-It-Yourself Challenge Wi-Fi Nicolas Vailliet Intel Software
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Internet of Things with Intel Edison CylonJS Pierre Collet Intel Software
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Sketching Vocabulary Chapter 3.4 in Sketching User Experiences: The Workbook Drawing objects, people, and their activities.
Win8 on Intel Programming Course Paul Guermonprez Intel Software
Design of Everyday Things Part 2: Useful Designs? Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Images from:
The Narrative Storyboard Chapter 4.4 in Sketching User Experiences: The Workbook.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
Open Access and Institutional Repositories, 10 July 2007, UKZN, Durban,,South Africa Metadata for institutional repositories: an introduction Pat Liebetrau.
PHPBelgium – Belgian PHP community PHPBelgium event MVC = Make Venerated Code? Patrick Allaert.
PHPBelgium – Belgian PHP community PHPBelgium event PHP & the MVC Pattern Patrick Allaert
Sketching Vocabulary Chapter 3.4 in Sketching User Experiences: The Workbook Drawing objects, people, and their activities.
Agenda Video pre-presentations Digital sketches & photo traces
Methodology Overview 2 basics in user studies Lecture /slide deck produced by Saul Greenberg, University of Calgary, Canada Notice: some material in this.
Visual programming Chapter 1: Introduction
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
Presentation transcript:

Win8 on Intel Programming Course Desktop : WPF Cédric Andreolli Intel Software

What is WPF?

WPF: Windows Presentation Foundation Renders graphical elements (through DirectX) Can be programmed with Visual Studio The view Written in XAML (Extensible Application Markup Language) Visual Studio provides a wysiwyg tool The application core Written in C#

What is WPF? Native libraries C# allows to use native libraries You sometimes need to write a wrapper C# can access most of the WinRT library WinRT offers a simple API Gives access to devices such as: Sensors GPS etc. C# Wrapper C++ library

Getting started with WPF?

Step 1: Create a WPF project In Visual Studio, create a new project (with a new solution) File -> New -> Project -> WPF Application

Getting started with WPF? Step 2: Run your project Click on the play button

Getting started with WPF? Step 3: Open the XAML file The file « MainWindow.xaml » is a XML file that represents the view Double click on it. The wysiwyg editor should open

Getting started with WPF? Step 4: Display the Toolbox The toolbox allows to add new controls in your view but… You must configure Visual Studio to display it!

Getting started with WPF? Step 4: Display the Toolbox You can change the Toolbox parent panel by Drag and Drop

Getting started with WPF? Step 5: Add a label Just drag and drop a Label from the Toolbox to the view

Getting started with WPF? Step 6: Change the style In the main view, select the label and open the Properties panel

Getting started with WPF? Step 6: Change the style If you cant find the Properties panel, you will have to add it!

Getting started with WPF? Step 6: Change the style In the Properties panel, set the font size to 34px Being able to modify the UI style through the Visual Studio interface avoid loosing a lot of time.

Getting started with WPF? Step 7: Add other UI elements Add the following elements: An other Label A Textbox A Button An empty Label

Getting started with WPF? Step 8: Add Name properties A name allows to identify a field and to retrieve it in your program To retrieve the content of the Texbox, add a name propertie to your Texbox (Select the Textbox and click on the properties panel)

Getting started with WPF? Step 8: Add Name properties Add a name property to the output Label

Getting started with WPF? Step 9: Add a handler A handler intercepts the actions that come from the user Set the name property for the button (use « Click » for example) Create the handler with Visual Studio In the design view, double click on the button Visual Studio will create the handler for you The name of the handler will be send_Click (if you named you button « Click »)

Getting started with WPF? Step 9: Add a handler You should be automatically redirected to the C# file editor

Getting started with WPF? Step 9: Add a handler The function send_Click will be called when a user click on the button Add some content to the handler

Getting started with WPF? Step 9: Add a handler In WPF, if you define a name property to a control, you can access this one in the C# file by using its name (for example myInput for the Textbox and output for the Label here) As you can see, adding a handler is easy and it is also quite simple to access the view elements

Getting started with WPF? Step 10: Run your program Put a name in the Textbox and click on the Button

Conclusion

In this part, weve seen some basics about WPF You should be able to add some control and retrieve inputs from the user now WPF provides very efficient tools to design UI WPF is simple The wysiwyg tool is adapted to UI creation Visual Studio allows us to be efficient WPF is powerful You can access native libraries Forced separation between the view and the rest of the application is a good practice

License Creative Commons – By 3.0 You are free: to Share to copy, distribute and transmit the work to Remix to adapt the work to make commercial use of the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). With the understanding that: Waiver Any of the above conditions can be waived if you get permission from the copyright holder. Public Domain Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license. Other Rights In no way are any of the following rights affected by the license: – Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations; – The author's moral rights; – Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights. Notice For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.