Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
    • .NET API Reference
      • EO.Base
      • EO.Base.UI
      • EO.Extensions
      • EO.Pdf
      • EO.Pdf.Acm
      • EO.Pdf.Contents
      • EO.Pdf.Drawing
      • EO.Pdf.Mvc
      • EO.Web
      • EO.WebBrowser
      • EO.WebBrowser.DOM
      • EO.WebEngine
      • EO.WinForm
      • EO.Wpf
      • EO.Wpf.Gauge
      • EO.Wpf.Gauge.Shapes
      • EO.Wpf.Primitives
      • EO.Wpf.Themes.Aero
      • EO.Wpf.Themes.Classic
      • EO.Wpf.Themes.Luna
      • EO.Wpf.Themes.Metro
      • EO.Wpf.Themes.Royale
    • JavaScript API Reference
LimitedSpacePanel Class

Represents a Panel that tries to arrange its children in one of the two ways: either tries to hide items that does not fit, or tries to shrink child items to make them fit.

Namespace: EO.Wpf.Primitives
Assembly: EO.Wpf (in EO.Wpf.dll)

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Panel
                     EO.Wpf.Primitives.LimitedSpacePanel

Syntax
 public class LimitedSpacePanel : Panel
Remarks

LimitedSpacePanel functions like a horizontal StackPanel, except that if the total child item width exceeds the total available width, it applies one of the following two strategies:

  • If AutoShrinkItem is set to true, it tries to automatically shrink each child item to make them fit. In this case only a portion of each child item will be shown. This behavior is demonstrated in the following image:

    In the above picture, the LimitedSpacePanel has two items. However the full width of the two items are greater than the total available width in the panel, so the panel tries to shrink both items. In this case both items are being clipped off on the right, as the shown in the picture that the letter "m" is not fully displayed;

  • If AutoShrinkItem is set to false, it hides those items that can not be fully displayed altogether. This behavior is demonstrated in the following image:

    In the above picture, the LimitedSpacePanel has two items, however because the second item can not completely fit into the visible area, the LimitedSpacePanel only displays "Item 1". "Item 2" is hidden (it's Visibility is set to Collapsed).

See Also