internal void OnStripButtonClicked(RadPageViewStripButtonElement button) { RadPageViewStripElement ancestor = this.FindAncestor <RadPageViewStripElement>(); if (ancestor == null || ancestor.SelectedItem != null && ancestor.SelectedItem.Page != null && ancestor.SelectedItem.Page.HasFocusedChildControl()) { return; } switch ((StripViewButtons)button.Tag) { case StripViewButtons.LeftScroll: this.itemLayout.Scroll(StripViewButtons.LeftScroll); break; case StripViewButtons.RightScroll: this.itemLayout.Scroll(StripViewButtons.RightScroll); break; case StripViewButtons.Close: ancestor.CloseItem(ancestor.SelectedItem); break; case StripViewButtons.ItemList: this.DisplayItemListMenu(ancestor); break; } }
internal void OnStripButtonClicked(RadPageViewStripButtonElement button) { RadPageViewStripElement parent = this.FindAncestor <RadPageViewStripElement>(); if (parent == null) { return; } switch ((StripViewButtons)button.Tag) { case StripViewButtons.Close: parent.CloseItem(parent.SelectedItem); break; case StripViewButtons.LeftScroll: this.itemLayout.Scroll(StripViewButtons.LeftScroll); break; case StripViewButtons.RightScroll: this.itemLayout.Scroll(StripViewButtons.RightScroll); break; case StripViewButtons.ItemList: this.DisplayItemListMenu(parent); break; } }