public void SlideOn(HorizontalEdge direction, Action onComplete)
{
// Prepare the panels starting position.
SetPosition(direction, true);
// Configure the animation.
Dictionary properties = new Dictionary();
properties[Css.Left] = 0;
// Perform animation.
Container.Animate(
properties,
parentList.Slide.ToMsecs(),
parentList.Slide.Easing,
delegate
{
// On complete.
Helper.Invoke(onComplete);
});
}