示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
        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;
        }
示例#4
0
        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;
        }
示例#5
0
 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);
 }
示例#6
0
 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);
 }
示例#7
0
 public bool Collapse(RadSplitter splitter, SplitterCollapsedState collapsedState)
 {
     return(false);
 }