290 likes | 475 Views
BCIS 4650 Visual Programming for Business Applications. Course Introduction. Welcome!. Build Windows Store Apps (desktop; tablet – phone apps too hard for beginners) Use XAML for UI and C# for code-behind Cannot use CoB VM for this course Must use Windows 8.1, VS 2013 Pro or higher
E N D
BCIS 4650 Visual Programming for Business Applications Course Introduction The University of North Texas, ITDS Dept., Dr. Vedder
Welcome! • Build Windows Store Apps (desktop; tablet – phone apps too hard for beginners) • Use XAML for UI and C# for code-behind • Cannot use CoB VM for this course • Must use Windows 8.1, VS 2013 Pro or higher • Focus on XAML (most weeks) • Get another syllabus at -- S:\vedder\courses\4650 The University of North Texas, ITDS Dept., Dr. Vedder
VS13 Extensions and SDKsS:\vedder\courses\4650 • VS Extensions (.vsix) • MS Player Framework • Productivity PowerTools 2013 • Snippet Designer • Text Highlighter (for XAML, JSON) • Software Development Kits (.msi, .vsix, …) • Advertising • Bing Maps • Streaming video, etc. The University of North Texas, ITDS Dept., Dr. Vedder
Some OOP Concepts • Class – a master for creating child objects; often have plural names • Object – a thing, a noun • Property – a characteristic of an object; an adjective for the noun • Value – data for the property, either null, or default, or supplied by you The University of North Texas, ITDS Dept., Dr. Vedder
Some OOP Concepts, 2 • Method – functionality for the object; a verb • Event – action recognized by an object (recognition is automatic, response is not – you must program); there is a ‘null event’ The University of North Texas, ITDS Dept., Dr. Vedder
Object Members / Class Members • Everything that can belong to an object or to its parent class • Properties, methods, enumerations, fields, structures, etc. The University of North Texas, ITDS Dept., Dr. Vedder
Scope • The zone of visibility for a class, object, procedure, etc. • Many scope qualifier keywords, ex., • Public: visible to the entire project • Private: visible only to the current module • Encapsulation – hiding the inner workings of a class or child object; using scope qualifiers to create an interface between public and private, as with a TV remote The University of North Texas, ITDS Dept., Dr. Vedder
Assigning Values to Properties • Template – theme with default text • Theme – collection of styles applied to entire document • Style – collection of formats applied to a section of a document • Individual format (of a selected object); anything the developer can see on the screen is an object, especially if selectable. The University of North Texas, ITDS Dept., Dr. Vedder
Naming Conventions • Both XAML and C# are case-sensitive • “CamelCase”: ex., romanHolidayVacation • Underscore prefix often used with private variables and object variables, ex., _premiumGasCost The University of North Texas, ITDS Dept., Dr. Vedder
BCIS 4650 Visual Programming for Business Applications Introduction to Visual Studio’s Integrated Development Environment (IDE) The University of North Texas, ITDS Dept., Dr. Vedder
Visual Studio 2013 Start Page The University of North Texas, ITDS Dept., Dr. Vedder
Integrated IDE The University of North Texas, ITDS Dept., Dr. Vedder
What Is a “Project”? • An application containing one or more “solutions” (.sln files) that may be in different .NET languages • Solution Explorer shows the details The University of North Texas, ITDS Dept., Dr. Vedder
Aside: VS12 (8) vs. VS13 (8.1)less than 12, will have to upgrade for Windows Store • Version 11 is for Windows 8.0 • Version 12 is for Windows 8.1 The University of North Texas, ITDS Dept., Dr. Vedder
Solution Explorer (not “Project Explorer”) The University of North Texas, ITDS Dept., Dr. Vedder
Loaded Sample Projectshowing a C# file The University of North Texas, ITDS Dept., Dr. Vedder
Loaded Sample Projectshowing a XAML file The University of North Texas, ITDS Dept., Dr. Vedder
What is a “Namespace”? • Library of related class definitions • Required for all .NET projects • Xaml pages: xmlns statements • C# files: using statements • Examples: • xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" l) • using System.IO; • Your own project or xaml page The University of North Texas, ITDS Dept., Dr. Vedder
Toolbox with Tabs / Trays The University of North Texas, ITDS Dept., Dr. Vedder
Properties Window (F4) The University of North Texas, ITDS Dept., Dr. Vedder
Intellisense • List Members (classname._____) • Parameter Info (for functions) • Quick Info (ex., complete declaration) • Complete Word (autotype keywords) • Automatic Brace Matching () {} [] <> • Syntax tips • Lots more The University of North Texas, ITDS Dept., Dr. Vedder
Tools | Options for This Class The University of North Texas, ITDS Dept., Dr. Vedder
Tools | Options for This Class, 2 The University of North Texas, ITDS Dept., Dr. Vedder
Tools | Options for This Class, 3 The University of North Texas, ITDS Dept., Dr. Vedder
Tools | Options for This Class, 4 The University of North Texas, ITDS Dept., Dr. Vedder
Free Tool for Resizing Images The University of North Texas, ITDS Dept., Dr. Vedder
Your Homework • Get your feet wet • Complete the ‘Hello World’ tutorial found here: http://msdn.microsoft.com/en-us/library/windows/apps/hh986965.aspx • Do not worry about what you do not yet understand. The University of North Texas, ITDS Dept., Dr. Vedder
ITDS Logo / Mood Slide The University of North Texas, ITDS Dept., Dr. Vedder