ViewSizingExtensions¶
Namespace: WellFired.Guacamole
Description¶
This static class is a bunch of helpfull layout and sizing utilities for views.
Public Static Methods¶
void | DoSizingAndLayout ( IView view, UIRect availableRegion ) |
void | AttemptToFullfillRequests ( IView view, UIRect availableSpace ) |
void | UpdateContextIfNeeded ( IBindableObject bindable ) |
Breakdown¶
void DoSizingAndLayout ( IView view, UIRect availableRegion )
Description
A simple utility method that allows you to publically and programatically resize a view, call this on the parent view and all child views will be refreshed automatically.
Parameters
view availableRegion
void AttemptToFullfillRequests ( IView view, UIRect availableSpace )
Description
This method will traverse the tree from root -> leaf, trying to satisfy Requested Rects. It’s possible that requested rects cannot be fullfilled due to constraints on parents, and in this case, requested rects will shrink to fit.
Parameters
view The view to fullfill availableSpace The space that is available to this view
- void UpdateContextIfNeeded ( IBindableObject bindable )