/// <summary> /// Measure headers /// </summary> private void MeasureHeaders(double widthConstraint, double heightConstraint) { _headerSize = new SizeRequest(); _stickyHeaderSize = new SizeRequest(); if (_headerElement != null && Children.Contains(_headerElement)) { _headerSize = Header.Measure(widthConstraint, heightConstraint, MeasureFlags.IncludeMargins); } if (_stickyHeaderElement != null && Children.Contains(_stickyHeaderElement)) { _stickyHeaderSize = StickyHeader.Measure(widthConstraint, heightConstraint, MeasureFlags.IncludeMargins); } }
public virtual string BuildUrl(StickyHeader current, MenuOrigin origin) { var categoryHierarchy = GetCategoryHierarchy(current); return(BuildUrl(current.Url, current.DisplayName, categoryHierarchy, origin)); }
/// <summary> /// StickyHeader does not contains sub items so I just return the c1 level /// </summary> /// <param name="currentItem"></param> /// <returns></returns> protected virtual NameValueCollection GetCategoryHierarchy(StickyHeader currentItem) { return(BuildCategoryHierarchyQueryStringParameters(SanatizeDisplayName(currentItem.DisplayName))); }