Skip to content

Instantly share code, notes, and snippets.

@eNeRGy164
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eNeRGy164/519ab4ac95122c60ce60 to your computer and use it in GitHub Desktop.
Save eNeRGy164/519ab4ac95122c60ce60 to your computer and use it in GitHub Desktop.
private void PullDownToRefreshPanel_LayoutUpdated(object sender, EventArgs e)
{
if (this.targetScrollViewer == null)
{
this.targetScrollViewer = FindVisualElement<ScrollViewer>(VisualTreeHelper.GetParent(this));
if (this.targetScrollViewer != null)
{
this.LayoutUpdated -= PullDownToRefreshPanel_LayoutUpdated;
// *snip*
}
}
}
//double doubleValue = -System.Convert.ToDouble(value);
double doubleValue = -(double)value; // No convert needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment