private void CollapseToNext() { this.collapsedState = SplitterCollapsedState.Next; this.restoreSize = this.SplitPosition; this.SplitPosition = int.MaxValue; this.splitterElement.NextArrow.Direction = this.Dock == DockStyle.Left || this.Dock == DockStyle.Right ? Telerik.WinControls.ArrowDirection.Left : Telerik.WinControls.ArrowDirection.Up; this.splitterElement.PrevNavigationButton.Visibility = ElementVisibility.Collapsed; }
private void CollapseToPrev() { this.collapsedState = SplitterCollapsedState.Previous; this.restoreSize = this.SplitPosition; this.SplitPosition = 0; this.splitterElement.PrevArrow.Direction = this.Dock == DockStyle.Left || this.Dock == DockStyle.Right ? Telerik.WinControls.ArrowDirection.Right : Telerik.WinControls.ArrowDirection.Down; this.splitterElement.NextNavigationButton.Visibility = ElementVisibility.Collapsed; }
private void CollapseToNext() { this.collapsedState = SplitterCollapsedState.Next; this.restoreSize = this.SplitPosition; this.SplitPosition = int.MaxValue; if (this.Dock == DockStyle.Left || this.Dock == DockStyle.Right) { this.splitterElement.NextArrow.Direction = ArrowDirection.Left; } else { this.splitterElement.NextArrow.Direction = ArrowDirection.Up; } this.splitterElement.PrevNavigationButton.Visibility = ElementVisibility.Collapsed; }
private void CollapseToPrev() { this.collapsedState = SplitterCollapsedState.Previous; this.restoreSize = this.SplitPosition; this.SplitPosition = 0; if (this.Dock == DockStyle.Left || this.Dock == DockStyle.Right) { this.splitterElement.PrevArrow.Direction = ArrowDirection.Right; } else { this.splitterElement.PrevArrow.Direction = ArrowDirection.Down; } this.splitterElement.NextNavigationButton.Visibility = ElementVisibility.Collapsed; }
public bool Expand() { this.collapsedState = SplitterCollapsedState.None; this.SplitPosition = this.restoreSize; if (this.Dock == DockStyle.Left || this.Dock == DockStyle.Right) { this.splitterElement.PrevArrow.Direction = Telerik.WinControls.ArrowDirection.Left; this.splitterElement.NextArrow.Direction = Telerik.WinControls.ArrowDirection.Right; } else { this.splitterElement.PrevArrow.Direction = Telerik.WinControls.ArrowDirection.Up; this.splitterElement.NextArrow.Direction = Telerik.WinControls.ArrowDirection.Down; } this.splitterElement.PrevNavigationButton.Visibility = ElementVisibility.Visible; this.splitterElement.NextNavigationButton.Visibility = ElementVisibility.Visible; return(false); }
public bool Collapse(SplitterCollapsedState target) { if (this.IsCollapsed) { if (target == SplitterCollapsedState.None) { return(this.Expand()); } return(false); } if (target == SplitterCollapsedState.Previous) { this.CollapseToPrev(); } if (target == SplitterCollapsedState.Next) { this.CollapseToNext(); } return(true); }
public bool Collapse(RadSplitter splitter, SplitterCollapsedState collapsedState) { return(false); }