Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / AnimationClock.cs / 1305600 / AnimationClock.cs
// AnimationClock.cs
namespace System.Windows.Media.Animation
{
///
///
///
public class AnimationClock : Clock
{
///
/// Creates a new empty AnimationClock to be used in a Clock
/// tree.
///
/// The Animation used to define the new
/// AnimationClock.
protected internal AnimationClock(AnimationTimeline animation)
: base(animation)
{
}
///
/// Gets the Animation object that holds the description controlling the
/// behavior of this clock.
///
///
/// The Animation object that holds the description controlling the
/// behavior of this clock.
///
public new AnimationTimeline Timeline
{
get
{
return (AnimationTimeline)base.Timeline;
}
}
///
/// Returns the current value of this AnimationClock.
///
///
/// The unanimated property value or the current
/// value of the previous AnimationClock in a list.
/// The current value of this AnimationClock.
public object GetCurrentValue(object defaultOriginValue, object defaultDestinationValue)
{
return ((AnimationTimeline)base.Timeline).GetCurrentValue(defaultOriginValue, defaultDestinationValue, this);
}
///
/// Returns true if this timeline needs continuous frames.
/// This is a hint that we should keep updating our time during the active period.
///
///
internal override bool NeedsTicksWhenActive
{
get
{
return true;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
// AnimationClock.cs
namespace System.Windows.Media.Animation
{
///
///
///
public class AnimationClock : Clock
{
///
/// Creates a new empty AnimationClock to be used in a Clock
/// tree.
///
/// The Animation used to define the new
/// AnimationClock.
protected internal AnimationClock(AnimationTimeline animation)
: base(animation)
{
}
///
/// Gets the Animation object that holds the description controlling the
/// behavior of this clock.
///
///
/// The Animation object that holds the description controlling the
/// behavior of this clock.
///
public new AnimationTimeline Timeline
{
get
{
return (AnimationTimeline)base.Timeline;
}
}
///
/// Returns the current value of this AnimationClock.
///
///
/// The unanimated property value or the current
/// value of the previous AnimationClock in a list.
/// The current value of this AnimationClock.
public object GetCurrentValue(object defaultOriginValue, object defaultDestinationValue)
{
return ((AnimationTimeline)base.Timeline).GetCurrentValue(defaultOriginValue, defaultDestinationValue, this);
}
///
/// Returns true if this timeline needs continuous frames.
/// This is a hint that we should keep updating our time during the active period.
///
///
internal override bool NeedsTicksWhenActive
{
get
{
return true;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlConnectionHelper.cs
- MD5.cs
- PlainXmlSerializer.cs
- CannotUnloadAppDomainException.cs
- SessionParameter.cs
- ListViewTableRow.cs
- DataGridViewCellValueEventArgs.cs
- Button.cs
- XmlnsPrefixAttribute.cs
- CharacterHit.cs
- Splitter.cs
- FormsAuthenticationModule.cs
- SchemaEntity.cs
- VisualBrush.cs
- SemanticBasicElement.cs
- RotateTransform.cs
- DispatcherEventArgs.cs
- AspProxy.cs
- FontStretch.cs
- PageCodeDomTreeGenerator.cs
- PropertyEmitter.cs
- PhysicalFontFamily.cs
- categoryentry.cs
- XmlDomTextWriter.cs
- SqlDataSourceCommandEventArgs.cs
- ProgressChangedEventArgs.cs
- RectAnimationUsingKeyFrames.cs
- ByteAnimation.cs
- XmlDictionaryWriter.cs
- ItemsControlAutomationPeer.cs
- DictionaryMarkupSerializer.cs
- XmlTextEncoder.cs
- MissingFieldException.cs
- DoubleStorage.cs
- EdmComplexPropertyAttribute.cs
- BaseTemplateParser.cs
- FixedPosition.cs
- AnalyzedTree.cs
- RoleManagerSection.cs
- controlskin.cs
- Component.cs
- KnownBoxes.cs
- NamespaceImport.cs
- RayHitTestParameters.cs
- BamlReader.cs
- AppSettingsReader.cs
- HtmlWindow.cs
- HotSpot.cs
- Attributes.cs
- XmlIlVisitor.cs
- DmlSqlGenerator.cs
- CachedCompositeFamily.cs
- RadioButtonList.cs
- DurationConverter.cs
- HostedAspNetEnvironment.cs
- RecipientInfo.cs
- RequestSecurityTokenResponseCollection.cs
- LinkLabel.cs
- HttpRuntimeSection.cs
- StaticContext.cs
- FormsAuthentication.cs
- ConfigXmlElement.cs
- parserscommon.cs
- LookupNode.cs
- DataGridViewCheckBoxColumn.cs
- ScaleTransform.cs
- CompiledQueryCacheEntry.cs
- XmlCodeExporter.cs
- StructuralCache.cs
- DataGridViewSelectedRowCollection.cs
- PartialCachingControl.cs
- odbcmetadatafactory.cs
- TextSchema.cs
- NoneExcludedImageIndexConverter.cs
- RewritingSimplifier.cs
- DataReceivedEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ContainerControl.cs
- ManagedIStream.cs
- TextAdaptor.cs
- ServiceHostingEnvironment.cs
- Rfc4050KeyFormatter.cs
- ToolStripSystemRenderer.cs
- CodeAccessPermission.cs
- FrameworkTextComposition.cs
- DbDataAdapter.cs
- TextSelectionHighlightLayer.cs
- CodeComment.cs
- NumberSubstitution.cs
- CustomError.cs
- iisPickupDirectory.cs
- FlowDocumentFormatter.cs
- CuspData.cs
- WebPartDescription.cs
- RTLAwareMessageBox.cs
- TableCell.cs
- HttpModuleCollection.cs
- TextInfo.cs
- DeploymentExceptionMapper.cs
- XmlAttributeOverrides.cs