03 | Building Windows Store Apps with XAML Part 3

Slides:



Advertisements
Similar presentations
Spreadsheet Vocabulary
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Panels, Tab Containers Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
Chapter 3 Creating a Business Letter with a Letterhead and Table
Jeopardy Multiple Choice Fill in the Blank Modified T/F Vocabulary Positioning of data Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Tutorial 6 Creating Fixed-Width Layouts
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Dinko Jakovljević Microsoft Student Partner | BambooLab
Mahender Sarangam Having close to 5 years of experience. Working as a Senior Software Engineer in United Health Group. Good Knowledge on C#, ASP.NET,
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
ITP 104.  While you can do things like this:  Better to use styles instead:
Building Windows 8 Apps with HTML & JavaScript Jaime Rodriguez Principal
1 Intro XAML Attribute syntax & property syntax Panels Reusable resources Controls Data binding Steen Jensen, spring 2014.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
PowerPoint: Working with Slides Lecture 7-2 CMPSC 100 Spring 2004 Penn State University Doug Hogan.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
LAYOUT CONTROLS. XAML Overview XAML : eXtensible Application Markup Language pronounced (ZAMEL) is a markup language used to design user interfaces XML-based.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
Lesson 7 - Structured Block Elements Lists. Unordered Lists list item. list item.
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.
Chapter 5 Creating Page Templates. Principles of Web Design 2nd Ed. Chapter 5 2 Principles of Web Design Chapter 5 Objectives Understand table basics.
© 2010 Delmar, Cengage Learning Chapter 4 Working with Frames.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
© 2011 Delmar, Cengage Learning Chapter 4 Working with Frames.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Positioning Objects with CSS and Tables
HelloWorld Create a window store App Part 3: Navigation, layout, and views Follow the tutorial :
Jaime Rodriguez | Microsoft Principal Technical Evangelist Laurent Bugnion | IdentityMine Senior Director XAML Deep Dive for Windows & Windows Phone Apps.
Tables MOAC LESSON 6. Table  Arrangement of data made up of horizontal rows and vertical columns  Used to organize information.
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
Adam Schultz MVVM and WPF. MVVM Model, View, ViewModel A software architecture designed to separate out User Interface design, Business Logic, and Data.
Jim Fawcett, Brown Bag Seminar Series Fall 2007
XAML and Blend Unni Ravindranathan | Senior Program Manager Lead (Blend) Jerry Nixon | Developer Evangelist (Colorado)
Laying out Elements with CSS
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition
Microsoft Office 2007-Illustrated
Windows Presentation Foundation Layout with Panels
Jim Fawcett, Brown Bag Seminar Series Fall 2007
Chapter A - Getting Started with Dreamweaver MX 2004
Tables and Frames.
UWA Responsive design.
Advanced CSS BIS1523 – Lecture 20.
Adapting UI for Different Screens and Orientations
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition
Unit 4: Using Spreadsheets to Make Economic Choices Lessons 20–26
Objectives Create a reset style sheet Explore page layout designs
6 Layout.
Layouts AKEEL AHMED.
Fixed Positioning.
WPF AKEEL AHMED.
DREAMWEAVER MX 2004 Chapter 3 Working with Tables
Responsive Web Design (RWD)
Introduction to Word Chapter 3
Laying out Elements with CSS
Bootstrap 4 December 17, 2018.
CSS Layout: Flexbox.
02 | Responsive Design Jerry Nixon | Microsoft Developer Evangelist
03 | Branding & Monetization
04 | XAML in Blend 2013 Part 2 of 2 Unni Ravindranathan | Senior Program Manager Lead (Blend) Jerry Nixon | Developer Evangelist (Colorado)
02 | Building Windows Store Apps with XAML Part 2
02 | Responsive Design Daren May | President (CRANK211)
Cascading Style Sheets CSS LAYOUT WITH GRID
Presentation transcript:

03 | Building Windows Store Apps with XAML Part 3 Daren May | President (CRANK211) Jerry Nixon | Developer Evangelist (Colorado)

Module Agenda Foundational Layout Controls Advanced Layout Controls Resource Management Data Binding

Foundational Layout Controls

Layout Fluid & Responsive Design Different screen sizes Different orientations

Canvas Used when to absolutely position children No flow layout Positions from top-left Least flexible

Canvas Example

StackPanel Stacks children horizontally or vertically Always provides infinite space for children Place inside ScrollViewer

StackPanel Example

Grid Most commonly used Specify rows and columns Works well with flow layouts Specify rows and columns Cells can span multiple row/columns Rows & columns can be sized: * (variable sizing -default) Fixed (point sizing) Auto (sizes to content)

Grid Example

WrapGrid & ItemsWrapGrid Used inside an ItemControl Automatically wraps items to fill space Fills based upon orientation Can be constrained to max number of rows or columns Can scroll/swipe to see more items

WrapGrid & ItemsWrapGrid Example

ScrollViewer Wraps other content Contains one element (that may contain others) Provides infinite space for the contained element Supports touch and zoom

ScrollViewer

Viewbox Exists to resize content Different modes: None – no resizing, but is clipped Fill – distorted to fill the space Uniform – scaled up but not distorted to fill UniformToFill – scaled up to completely fill space (may clip)

Viewbox

Advanced Layout Controls

New Controls & Features in 8.1 AppBar Controls AppBarButton AppBarToggleButton AppBarSeparator Flyout MenuFlyout CommandBar FlipView updates Hub SettingsFlyout Header support DatePicker TimePicker XAML -> bitmap

Data Template

Items Panel Template

Repeaters Items Control Grid View List View Flip View Hub

Grid View Syntax

List View Syntax

Flip View Syntax

Hub Syntax

Hub control

Resource Management

What is a resource? Types of resources Constants Styles Templates Colors Font sizes More… Styles Templates Control templates Data templates

Resource Scope

Data Binding

Literal Data You could hard code everything, but… … this isn’t very dynamic!

Dynamic Data Use data binding to connect to a data source Typical data source would be a view model

Converting Data Converters are used to change data during binding IValueConverter Convert Converts the Object Property data to a new format/value before assignment to the FrameworkElement Property ConvertBack Converts the FrameworkElement Property data to a new format/value before assignment to the Object Property in two-way bindings Often not implemented

Updating the UI INotifyPropertyChanged INotifyCollectionChanged Implement in a view model class Raised by View Model when property value changes INotifyCollectionChanged Implemented in ObservableCollection<T> and ReadOnlyObservableCollection<T> Raised by the collection when the collection is modified

Module Agenda Foundational Layout Controls Advanced Layout Controls Resource Management Data Binding