private void ToggleComments()
{
if ( CommentStory.GetCurrentState() != ClockState.Stopped ) return;
CommentStory.Children.Clear();
// Slide In / Slide Out
if ( CommentsOpened )
{
DisplayControls( HomeControls );
SimpleStory.DoubleAnimation(
CommentStory, CommentSection
, "(UIElement.RenderTransform).(TranslateTransform.Y)"
, 0, 0.25 * LayoutSettings.ScreenHeight
);
SimpleStory.DoubleAnimation( CommentStory, CommentSection, "Opacity", 1, 0 );
}
else
{
DisplayControls( CommentControls );
SimpleStory.DoubleAnimation(
CommentStory, CommentSection
, "(UIElement.RenderTransform).(TranslateTransform.Y)"
, 0.25 * LayoutSettings.ScreenHeight, 0
);
SimpleStory.DoubleAnimation( CommentStory, CommentSection, "Opacity", 0, 1 );
CommentSection.Visibility = Visibility.Visible;
if ( !CommInit )
{
CommInit = true;
ReloadComments();
}
}
CommentStory.Begin();
}