private void EpisodeFlipControl_SizeChanged(object sender, SizeChangedEventArgs e)
{
if (_currentElement != null && _nextElement != null)
{
_currentElement.Width = _nextElement.Width = e.NewSize.Width;
_currentElement.Height = _nextElement.Height = e.NewSize.Height;
}
//Set content area to twice the size in the slide direction
if (_scroller != null)
{
if(Direction == SlideDirection.Up)
_scroller.Height = e.NewSize.Height * 2;
else
_scroller.Width = e.NewSize.Width * 2;
}
//Set clip to control
this.Clip = new Windows.UI.Xaml.Media.RectangleGeometry() { Rect = new Rect(new Point(), e.NewSize) };
}