Beispiel #1
0
 /// <summary>
 /// 取消调整
 /// </summary>
 internal void CancelResize()
 {
     if (ResizeBehavior == GridResizer.ResizeBehavior.Resize)
     {
         if (IsPlacementHorizontal)
         {
             ResizedTgt.Width = ResizedTgtOriginalLength;
         }
         else
         {
             ResizedTgt.Height = ResizedTgtOriginalLength;
         }
     }
     else
     {
         TabItemPanel.SetSplitterChange(ResizedTgt, _resizedTgtOriginalChange);
         TabItemPanel.SetSplitterChange(AffectedTgt, _affectedTgtOriginalChange);
     }
     InvalidatePanelMeasure();
     ClearReferences();
 }
Beispiel #2
0
 void SplitItems(double change)
 {
     TabItemPanel.SetSplitterChange(ResizedTgt, ResizedTgtOriginalLength + change);
     TabItemPanel.SetSplitterChange(AffectedTgt, AffectedTgtOriginalLength - change);
 }