Bug 27362 - CancelAnimations is on ViewExtensions but is not an extension method
Summary: CancelAnimations is on ViewExtensions but is not an extension method
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.3
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL: https://forums.xamarin.com/discussion...
Depends on:
Reported: 2015-02-24 11:28 UTC by Richard Shaw
Modified: 2015-05-18 17:42 UTC (History)
4 users (show)

Tags: all
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Richard Shaw 2015-02-24 11:28:54 UTC
Xamarin.Forms 1.3.3

The CancelAnimations method is present on Xamarin.Forms.ViewExtensions, but is not set up as an extension method. 
Was this intentional?

I've provided a little work around for it, but i'm sure placing the "this" inside the method signature would just fix this right up.

public static class FixedViewExtensions
        public static void CancelAllAnimations (this Xamarin.Forms.VisualElement view) 
            if(view == null)
                throw new ArgumentNullException(@"view");

Comment 1 Sadik Ali 2015-05-05 05:31:01 UTC
I have checked this issue with Xamarin.Forms version : . I  observed that  CancelAnimations method is not an extension method.

Screencast: http://www.screencast.com/t/RZjiMZTfkZ

I am not sure, Developer will better clarify is this intentional behaviour or not?

For now I am leaving status as New .

Environment Info:
=== Xamarin Studio ===

Version 5.9 (build 464)
Installation UUID: 3d25a767-a003-4a7d-9f5e-e57987cf6cf0
	Mono 4.0.1 ((detached/5a0b19f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010024

=== Apple Developer Tools ===

Xcode 6.3 (7569)
Build 6D570

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 1b48440
Branch: master
Build date: 2015-05-04 17:01:32-0400

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/mac360_xamarin/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 509000464
Git revision: 97f3c43266a4abe2dff0a31b1afb976de897d099
Build date: 2015-05-04 10:06:54-04
Xamarin addins: 438f3e4b8352e006958552de07c6f54770c9233c

=== Operating System ===

Mac OS X 10.10.0
Darwin mac360-xamarins-Mac-mini.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Jason Smith [MSFT] 2015-05-18 17:42:52 UTC
An oversight Im not sure we can correct now as this would be an API break.