Author: miguel
Date: 2007-06-19 13:08:38 -0400 (Tue, 19 Jun 2007)
New Revision: 80203

Added:
   
trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
Modified:
   trunk/olive/class/agclr/Mono/NativeMethods.cs
   trunk/olive/class/agclr/agclr.dll.sources
Log:
Add DoubleAnimationUsingKeyFrames

Modified: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-19 17:04:18 UTC 
(rev 80202)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-19 17:08:38 UTC 
(rev 80203)
@@ -395,6 +395,9 @@
                internal extern static IntPtr double_animation_new ();
 
                [DllImport("moon")]
+               internal extern static IntPtr 
double_animation_using_key_frames_new ();
+
+               [DllImport("moon")]
                internal extern static IntPtr color_animation_new ();
 
                [DllImport("moon")]

Added: 
trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
===================================================================
--- 
trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
     2007-06-19 17:04:18 UTC (rev 80202)
+++ 
trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
     2007-06-19 17:08:38 UTC (rev 80203)
@@ -0,0 +1,56 @@
+//
+// DoubleAnimation.cs
+//
+// Author:
+//   Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using Mono;
+namespace System.Windows.Media.Animation 
+{
+       public class DoubleAnimationUsingKeyFrames : DoubleAnimation 
+       {
+               public static readonly DependencyProperty KeyFramesProperty = 
+                          DependencyProperty.Lookup 
(Kind.DOUBLEANIMATIONUSINGKEYFRAMES, "KeyFrames", typeof (KeyFrameCollection));
+
+               public DoubleAnimationUsingKeyFrames (): base 
(Mono.NativeMethods.double_animation_using_key_frames_new ())
+               {
+                       NativeMethods.base_ref (native);
+               }
+
+               internal DoubleAnimationUsingKeyFrames (IntPtr raw) : base (raw)
+               {
+               }
+
+
+               public KeyFrameCollection KeyFrames {
+                       get { return (KeyFrameCollection) GetValue 
(KeyFramesProperty); }
+                       set { SetValue (KeyFramesProperty, value); }
+               }
+
+               protected internal override Kind GetKind()
+               {
+                       return Kind.DOUBLEANIMATIONUSINGKEYFRAMES;
+               }
+       }
+}


Property changes on: 
trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/olive/class/agclr/agclr.dll.sources
===================================================================
--- trunk/olive/class/agclr/agclr.dll.sources   2007-06-19 17:04:18 UTC (rev 
80202)
+++ trunk/olive/class/agclr/agclr.dll.sources   2007-06-19 17:08:38 UTC (rev 
80203)
@@ -111,6 +111,7 @@
 System.Windows.Media.Animation/BeginStoryBoard.cs
 System.Windows.Media.Animation/ColorAnimation.cs
 System.Windows.Media.Animation/DoubleAnimation.cs
+System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
 System.Windows.Media.Animation/FillBehavior.cs
 System.Windows.Media.Animation/ParallelTimeline.cs
 System.Windows.Media.Animation/PointAnimation.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to