StripViewItemLayout
Measures, arranges, and scrolls the page items displayed in a strip view.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class StripViewItemLayout : RadPageViewElementBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadPageViewElementBaseStripViewItemLayout...
Derived Classes:
Implements:
Inherited Members
Constructors
public StripViewItemLayout()
Fields
Identifies how item rows are reassigned when a multiline strip is resized; the default is Reflow.
public static RadProperty MultiLineItemFitModeProperty
Properties
Gets or sets the MultiLineItemFitMode.This mode determines how the multiLine layout will behave when control is resizing.
public virtual MultiLineItemFitMode MultiLineItemFitMode { get; set; }
Gets the animation settings used when the strip's scroll offset changes.
public virtual AnimatedPropertySetting ScrollAnimation { get; }
Gets the scroll offset applied to the strip.
[Browsable(false)]
public virtual int ScrollOffset { get; }
Methods
Arranges one item using the strip alignment, margins, and fill-height setting.
protected virtual SizeF ArrangeItem(RadPageViewElementBase item, RectangleF clientRect, RectangleF clientNoOffset, PointF currentLocation)
The item to arrange.
clientRectRectangleFThe client rectangle after scroll-offset translation.
clientNoOffsetRectangleFThe client rectangle before scroll-offset translation.
currentLocationPointFThe starting location for this item.
Returns:The offset consumed by the item and its spacing.
Arranges pinned items first, then the preview item, and finally the remaining visible items.
protected virtual void ArrangeItems(RectangleF client, RectangleF clientNoOffset)
The client rectangle available to the items.
clientNoOffsetRectangleFThe client rectangle before scroll-offset translation.
Positions the visible preview item at the far end of the strip according to its alignment.
protected virtual void ArrangePreviewItem(RectangleF client, RectangleF clientNoOffset)
The client rectangle after scroll-offset translation.
clientNoOffsetRectangleFThe client rectangle before scroll-offset translation.
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
Initializes the animated scroll-offset setting used by the strip.
protected override void InitializeFields()
Overrides:
Measures strip items using the configured fit mode and updates the scroll offset after sizing changes.
Resets scrolling when relevant strip properties change and notifies the owner when the layout bounds change.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Details of the property that changed.
Overrides:
Clears pending layout state and stops scrolling animation when the element leaves its tree.
protected override void OnUnloaded(ComponentThemableElementTree oldTree)
The element tree the layout was removed from.
Overrides:
Suppresses focus cues on the layout because they are painted by the individual strip items.
Adjusts the scroll offset to bring an item into view while preserving a partial-item cue at the strip edge.
protected virtual void ScrollToItem(RadPageViewItem item)
The item to reveal.