public TypedAttachedScalarBinding(Template template, T element, ScalarBinding <T> baseBinding) : base(template) { _element = element; s_bindingsByElement.Add(element, this); _baseBinding = baseBinding; _baseBinding.Seal(this, 0); }
internal void AddBinding(GridRange gridRange, ScalarBinding scalarBinding) { Debug.Assert(IsValid(gridRange)); scalarBinding.Seal(this, gridRange, InternalScalarBindings.Count); InternalScalarBindings.Add(gridRange, scalarBinding); if (!HasRowBinding) { ScalarBindingsSplit = InternalScalarBindings.Count; } }