protected override void CreateChildElements() { this.itemContainer = this.CreateItemContainer(); this.Children.Add((RadElement)this.itemContainer); this.newItem = new RadPageViewStripNewItem(); this.newItem.Owner = (RadPageViewElement)this; base.CreateChildElements(); }
private void OnButtonClick(object sender, EventArgs e) { StripViewItemContainer parent = this.FindAncestor <StripViewItemContainer>(); if (parent != null) { parent.OnStripButtonClicked(sender as RadPageViewStripButtonElement); } }
protected override SizeF ArrangeOverride(SizeF finalSize) { //no need to arrange if no valid layout info is accumulated via a measure pass. if (this.layoutInfo == null) { return(finalSize); } RectangleF client = this.GetAlignedClientRectangle(finalSize); if (this.RightToLeft && this.layoutInfo.align != StripViewAlignment.Left && this.layoutInfo.align != StripViewAlignment.Right) { client = LayoutUtils.RTLTranslateNonRelative(client, new RectangleF(PointF.Empty, finalSize)); } if (client.Width > 0 && client.Height > 0) { this.ArrangeItems(client); } StripViewItemContainer parent = this.FindAncestor <StripViewItemContainer>(); if (parent != null) { parent.UpdateButtonsEnabledState(); } if (this.itemToEnsureVisible != null) { this.ScrollToItem(itemToEnsureVisible); this.itemToEnsureVisible = null; } return(finalSize); }