Class SelfScrollingViews
Helper for views that scroll their own content, such as embedded list/grid screens and checklists. Sections lay their fields out at natural measured height (see FieldsPanel); a view that can scroll should declare the height it needs as its MinHeight and cap its natural desire to that, taking more only when the user arranges more into it - otherwise the section would grow to fit every row. Call CapUnboundedHeight(FrameworkElement, Size) at the top of MeasureOverride to apply the cap.
public static class SelfScrollingViews
- Inheritance
-
SelfScrollingViews
- Inherited Members
Methods
CapUnboundedHeight(FrameworkElement, Size)
public static Size CapUnboundedHeight(FrameworkElement view, Size constraint)
Parameters
viewFrameworkElementconstraintSize