internal void InitializeForContext( VirtualizingLayoutContext context, IFlowLayoutAlgorithmDelegates callbacks) { FlowAlgorithm.InitializeForContext(context, callbacks); context.LayoutStateCore = this; }
internal void InitializeForContext(VirtualizingLayoutContext context, IFlowLayoutAlgorithmDelegates callbacks) { m_flowAlgorithm.InitializeForContext(context, callbacks); if (m_estimationBuffer.Length == 0) { Array.Resize(ref m_estimationBuffer, BufferSize); } context.LayoutStateCore = this; }
internal void InitializeForContext(VirtualizingLayoutContext context, IFlowLayoutAlgorithmDelegates callbacks) { FlowAlgorithm.InitializeForContext(context, callbacks); if (_estimationBuffer.Count == 0) { _estimationBuffer.AddRange(Enumerable.Repeat(0.0, BufferSize)); } context.LayoutState = this; }
internal void InitializeForContext( VirtualizingLayoutContext context, IFlowLayoutAlgorithmDelegates callbacks) { FlowAlgorithm.InitializeForContext(context, callbacks); if (m_estimationBuffer.Count == 0) { m_estimationBuffer.Resize(BufferSize, 0.0); } context.LayoutStateCore = this; }
internal void InitializeForContext( VirtualizingLayoutContext context, IFlowLayoutAlgorithmDelegates callbacks) { FlowAlgorithm.InitializeForContext(context, callbacks); if (m_lineSizeEstimationBuffer.Count == 0) { m_lineSizeEstimationBuffer.Resize(BufferSize, 0.0); m_itemsPerLineEstimationBuffer.Resize(BufferSize, 0.0); } ((ILayoutContextOverrides)context).LayoutStateCore = this; }
public void InitializeForContext(VirtualizingLayoutContext context, IFlowLayoutAlgorithmDelegates callbacks) { _algorithmCallbacks = callbacks; _context = context; _elementManager.SetContext(context); }