+ All Categories
Home > Technology > MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

Date post: 19-May-2015
Category:
Upload: amira-gamal
View: 510 times
Download: 2 times
Share this document with a friend
Popular Tags:
25
INTRODUCTION TO XAML Presented by: Amira Gamal
Transcript
Page 1: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

INTRODUCTION TO XAML

Presented by:

Amira Gamal

Page 2: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

WELCOME

Windows 8WindowsPhone

Page 3: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

AGENDA

• What is XAML ?

• How is it Declarative ?

• Markup Language.

• Hierarchical Relationships & Visual Tree.

• Core Controls.

• Layouts & Panels.

• Properties affecting Layouts & Panels.

• What is Blend?

Page 4: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

WHAT IS XAML?

•XAML stands for “extensible Application Markup Language”•XAML is:

-used to create UI.

-declarative .

Page 5: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

DECLARATIVE

• XAML Code

• C# Code

Page 6: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

DEMO

Page 7: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

MARKUP EXTENSION

Markup Extension

Page 8: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

HIERARCHICAL RELATIONSHIPS & VISUAL TREE

• XAML language structure shows a hierarchical relationships between multiple objects.

• The visual tree represents all of the elements in your UI which render to an output device.

Page 9: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

CORE CONTROLS

Page 10: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

LAYOUTS & PANELS

• Grid.

• Stack.

• Canvas.

• Wrap Panel (*Windows Phone Toolkit*).

Page 11: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

WRAP PANEL (TOOLKIT)

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" WindowTitle="WrapPanel Properties Sample"> <Border HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="Black" BorderThickness="2"> <WrapPanel Orientation="Horizontal" Background="Azure" ItemWidth="25" ItemHeight="25" Height="200" Width="200"> <Button Width="200">Button 1</Button> <Button>Button 2</Button> <Button>Button 3</Button> </WrapPanel> </Border>

</Page>

Page 12: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

TOOLKIT

Map Extensions Various Effects/Transitions

Custom Message Box

RatingControl

Page 13: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

TOOLKIT

Grid Layout List Layout Expander View ListPicker

Page 14: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

TOOLKIT

Time/datePicker

Context Menu Toggle Switch Control

Auto CompleteBox

Page 15: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

GRID

Row Span = 3

Column Span = 2

Row = 0

Row = 1

Row = 2

Row = 3

Column = 0 Column = 1 Column = 2

Page 16: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

GRID IN XAML

Page 17: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

STACK PANEL

• Stacks child elements together• Orientation: Vertical/Horizontal

Page 18: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

STACK PANEL

- STACK IN XAML

Page 19: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

PROPERTIES AFFECTING LAYOUTS & PANELS

• Width/Height.

• Horizontal/Vertical Alignment.

• Margin .

• Padding .

• Visibility .

Page 20: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

ALIGNMENT

• Determines position and stretch for an element • Horizontal Alignment -Left, Center, Right, Stretch • Vertical Alignment -Top, Center, Bottom, Stretch

Page 21: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

MARGIN

• Space outside edges of an element .

Page 22: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

PADDING• Space inside edges of an element

Page 23: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5
Page 24: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

Any Questions

???

Page 25: MSTC'14 (Window Phone +Windows 8 ) Workshops_Day 5

Thank You

CONTACT ME:Mail:[email protected]: @Amira_gamalmFB: /amiragamalsalem


Recommended