Whidbey Layout - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Whidbey Layout

Description:

TableLayoutPanel w/AutoSize contents is the hotness. Smooth Environment Support. Gracefully adapt to font changes. Gracefully adapt to dpi changes ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 8
Provided by: erick47
Category:
Tags: adapt | layout | whidbey

less

Transcript and Presenter's Notes

Title: Whidbey Layout


1
Whidbey Layout
2
Why
  • Enable AutoLayout
  • Cost of per form relayout high
  • Any code touch with loc is
  • TableLayoutPanel w/AutoSize contents is the
    hotness
  • Smooth Environment Support
  • Gracefully adapt to font changes
  • Gracefully adapt to dpi changes
  • Enable accurate zooming scenarios
  • AutoScaleMode/AutoScaleDimensions

3
What are the big parts
  • TableLayoutPanel
  • HTML Table like top level control
  • FlowLayoutPanel
  • control for lists and menus
  • AutoSize
  • Greatly enhanced autosize support
  • AutoScale
  • More accurate and flexible

4
TableLayoutPanel
  • Enables no code localization and data driven
    content scenarios.
  • Defines relationships between columns and rows
  • Three Column/Row Styles
  • Percentage (weighted)
  • Absolute (pixels)
  • AutoSize (size to content)
  • Supports spanning rows and columns
  • No physical cells
  • Extender provider model

5
FlowLayoutPanel
  • Used in menus
  • Used in portal flow scenarios
  • Used for text wrapping control
  • Four Flow Directions
  • LeftToRight
  • RightToLeft
  • TopDown
  • BottomUp
  • Supports wrapping flow

6
AutoSize
  • Per control specialization of sizing that matches
    usage
  • Critical part of Autolayout support
  • Internally calls GetPreferredSize() which can be
    overriden
  • Two different AutoSizeModes
  • GrowOnly
  • GrowAndShrink

7
AutoScale
  • Replaces Everett model
  • AutoScale -gt AutoScaleMode
  • AutoScaleBaseSize -gt AutoScaleDimensions
  • AutoScaleMode (now an enum)
  • Font (Font DPI really)
  • DPI (screen density)
  • Inherit (user control usage typical)
  • None
  • AutoScaleDimensions
  • Now an SizeF() for increased accuracy
Write a Comment
User Comments (0)
About PowerShow.com