sizing positioning and transforming elements n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Sizing, Positioning, and Transforming Elements PowerPoint Presentation
Download Presentation
Sizing, Positioning, and Transforming Elements

Loading in 2 Seconds...

  share
play fullscreen
1 / 7
sage-richard

Sizing, Positioning, and Transforming Elements - PowerPoint PPT Presentation

95 Views
Download Presentation
Sizing, Positioning, and Transforming Elements
An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Sizing, Positioning, and Transforming Elements

  2. Height and Width • MinHeight, MaxHeight, MinWidth, MaxWidth • DesiredSize(read-only) • Calculated during layout • RenderSize(read-only) • Final size of an element after layout is complete • ActualHeight, ActualWidth(read-only) • Equal to RenderSize.Height and RenderSize.Width

  3. Margin and Padding

  4. DIP • Device-Independent Pixels • 1/96 inch, regardless of the screen’s DPI setting • 96 • On a typical 96-DPI display, 1 dip = 1 physical pixel

  5. Control Position • Alignment • HorizontalAlignment • VerticalAlignment • Content Alignment • FlowDirection (explicitly set to match the current culture)

  6. Applying Transforms • LayoutTransform (before the element is laid out) • RenderTransform (after the layout process has finished) • RotateTransform • ScaleTransform • SkewTransform • TranslateTransform • MatrixTransform • Not all FrameworkElementssupport transforms!