void ISplitterDragSource.MoveSplitter(int offset)
{
NestedDockingStatus status = this.DockPane.NestedDockingStatus;
double proportion = status.Proportion;
if (status.LogicalBounds.Width <= 0 || status.LogicalBounds.Height <= 0)
return;
else if (status.DisplayingAlignment == DockAlignment.Left)
proportion += (offset) / (double)status.LogicalBounds.Width;
else if (status.DisplayingAlignment == DockAlignment.Right)
proportion -= (offset) / (double)status.LogicalBounds.Width;
else if (status.DisplayingAlignment == DockAlignment.Top)
proportion += (offset) / (double)status.LogicalBounds.Height;
else
proportion -= (offset) / (double)status.LogicalBounds.Height;
this.DockPane.SetNestedDockingProportion(proportion);
}