Layout with Panels


  • Canvas
  • StackPanel
    • VirtualizingStackPanel which acts just like StackPanel but temporarily discards any items offscreen to optimize performance
  • WrapPanel
  • DockPanel which  is useful for arranging a top-level user interface in a Window or Page
  • Grid. GridSplitter, SharedSizeGroup

Although Grid looks like it can practically do it all, StackPanel and WrapPanel are better choices when dealing with an indeterminate number of child elements (typically as an items panel for an items control, described in Chapter 10.
Also, a DockPanel with complicated subpanels is sometimes a better choice than a single Grid panel because the isolation provided by subpanels is more manageable when the user interface changes. With a single Grid, you might need to adjust RowSpan and ColumnSpan values to keep the docking illusion while rows and columns are added to the Grid.

  • Primitive Panels : TabPanel, ToolBarPanel, ToolBarOverflowPanel,ToolBarTray, UniformGrid, SelectiveScrollingGrid

댓글

이 블로그의 인기 게시물

Oracle NLS_DATE_FORMAT 변경

Stop console process using Ctrl+C.

Alternative to IValueConvert, QuickConverter