public bool SeparatorMoving(Point mouse, Point splitter)
{
// Ignore the delta applied to the splitter position
if (Orientation == Orientation.Vertical)
splitter.Y = 0;
else
splitter.X = 0;
// Fire the event that indicates the splitter is being moved
SplitterCancelEventArgs e = new SplitterCancelEventArgs(mouse.X, mouse.Y, splitter.X, splitter.Y);
OnSplitterMoving(e);
// Tell caller if the movement should be cancelled or not
return e.Cancel;
}