Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm...

19
Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm http://blog.markbschramm.com

Transcript of Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm...

Page 1: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Windows 10Adaptive Interface

MARK SCHRAMM, MICROSOFT MVPwindows platform development @markbschrammhttp://blog.markbschramm.com

Page 2: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Adaptive Interface

•Devices

•Scaling

•Pixels

•Design

•Controls

Page 3: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Phone Small Tablet

2-in-1s(Tablet or Laptop)

Desktops & All-in-OnesPhablet Large Tablet

Classic Laptop

Xbox IoTSurface Hub

Holographic

Windows 10

Page 4: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Scaling Algorithm (Built in)

Page 5: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .
Page 6: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Effective Pixels

• Ignore scale, resolution & dpi.

•Design in Effective Pixels

•XAML is already in Effective Pixels

Page 7: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Planning Your Design

Page 8: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

As You Design

•Adapt to size change

•Adapt to input change

•Rely on the scaling algorithm

•Remember that 4 is the magic number

Page 9: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Snap Points (Adapt to Size)

Page 10: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .
Page 11: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Use Standard responsive/adaptive design techniques

Page 12: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

How to Build Adaptive UIC# & XAML

Page 13: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Visual States

•Define XAML Views• Unique layout for distinctive states

•Simplify animation• Automatically implement state transitions

•Build in Blend•Design and preview states and transitions

Page 14: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Adaptive Triggers instead of Code

•Code-free state transitions

•Two build-in triggers•MinWindowHeight (Taller than this)•MinWIndowWidth (Wider than this)

Page 15: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Visual State Setters

•Setting a simple, scalar value•Great when you think of ENUM values like Visibility, Stretch, etc.

•Does not invoke a storyboard•Does not require ObjectAnimationUsingKeyFrames

Page 16: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

XAML ControlsSplitview, RelativePanel,

Page 17: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

SplitView

Page 18: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

RelativePanel Control

• A child or two act as an anchor element• They are relative to the panel

• Other children are relative to the anchors• RelativePanel.Above = “ElementName”• RelativePanel.RightOf = “ElementName”• RelativePanel.Below = “ElementName”• RelativePanel.LeftOf = “ElementName”

• RelativePanel simplifies adaptive UI• A simple Visual State setter can rearrange the UI• One element can move a family of related elements

Page 19: Windows 10 Adaptive Interface MARK SCHRAMM, MICROSOFT MVP windows platform development @markbschramm .

Windows 10 UWPADAPTIVE UI