Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Media / Animation / ResumeStoryboard.cs / 1 / ResumeStoryboard.cs
/****************************************************************************\ * * File: ResumeStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * resumes. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// ResumeStoryboard will call resume on its Storyboard reference when /// it is triggered. /// public sealed class ResumeStoryboard : ControllableStoryboardAction { ////// Called when it's time to execute this storyboard action /// internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) { Debug.Assert( containingFE != null || containingFCE != null, "Caller of internal function failed to verify that we have a FE or FCE - we have neither." ); if( containingFE != null ) { storyboard.Resume(containingFE); } else { storyboard.Resume(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ResumeStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * resumes. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// ResumeStoryboard will call resume on its Storyboard reference when /// it is triggered. /// public sealed class ResumeStoryboard : ControllableStoryboardAction { ////// Called when it's time to execute this storyboard action /// internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) { Debug.Assert( containingFE != null || containingFCE != null, "Caller of internal function failed to verify that we have a FE or FCE - we have neither." ); if( containingFE != null ) { storyboard.Resume(containingFE); } else { storyboard.Resume(containingFCE); } } } } // 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
- TypedReference.cs
- ISAPIApplicationHost.cs
- SvcMapFile.cs
- DependencyObjectPropertyDescriptor.cs
- PropertyGeneratedEventArgs.cs
- CodeDomLocalizationProvider.cs
- KnownTypeAttribute.cs
- RawStylusActions.cs
- GenericPrincipal.cs
- MimeWriter.cs
- LoadMessageLogger.cs
- HelloOperationCD1AsyncResult.cs
- LinearKeyFrames.cs
- ObjectComplexPropertyMapping.cs
- MetadataSet.cs
- QueryStringParameter.cs
- TypeUsageBuilder.cs
- ConstructorExpr.cs
- AppSettingsSection.cs
- SchemaCollectionPreprocessor.cs
- AttributeProviderAttribute.cs
- OleDbTransaction.cs
- CollectionChangedEventManager.cs
- CompilationSection.cs
- ImportContext.cs
- SaveWorkflowAsyncResult.cs
- AssemblySettingAttributes.cs
- ReadWriteSpinLock.cs
- Stacktrace.cs
- OrderToken.cs
- Int32AnimationBase.cs
- SimpleApplicationHost.cs
- documentsequencetextview.cs
- NodeFunctions.cs
- DbConnectionStringBuilder.cs
- RootBrowserWindowAutomationPeer.cs
- ValueTable.cs
- BufferedReadStream.cs
- DivideByZeroException.cs
- DataSourceSelectArguments.cs
- ListViewUpdatedEventArgs.cs
- ObjectStorage.cs
- X509InitiatorCertificateServiceElement.cs
- BufferedGraphicsContext.cs
- HtmlEncodedRawTextWriter.cs
- MethodAccessException.cs
- XomlCompilerParameters.cs
- ProfileServiceManager.cs
- DelimitedListTraceListener.cs
- MemberDomainMap.cs
- SslStream.cs
- SelectingProviderEventArgs.cs
- QueryableDataSource.cs
- BinaryObjectWriter.cs
- ToolStripTextBox.cs
- HandlerFactoryWrapper.cs
- ObjectSet.cs
- TimelineGroup.cs
- RecommendedAsConfigurableAttribute.cs
- BaseCollection.cs
- BamlStream.cs
- FunctionDetailsReader.cs
- SecurityUtils.cs
- XPathNodeList.cs
- XmlDataSourceNodeDescriptor.cs
- ReadOnlyDictionary.cs
- KeyPressEvent.cs
- HandleValueEditor.cs
- XamlDesignerSerializationManager.cs
- StateItem.cs
- DispatchChannelSink.cs
- XpsFilter.cs
- ContractAdapter.cs
- TextRangeEdit.cs
- SqlCommandAsyncResult.cs
- DataGridItemAttachedStorage.cs
- PropertyBuilder.cs
- TraceSwitch.cs
- Base64Encoding.cs
- LongValidatorAttribute.cs
- XmlSerializerVersionAttribute.cs
- ContextMenu.cs
- PermissionRequestEvidence.cs
- CellCreator.cs
- HandlerFactoryWrapper.cs
- DictionaryCustomTypeDescriptor.cs
- ThumbAutomationPeer.cs
- PocoEntityKeyStrategy.cs
- OdbcConnectionStringbuilder.cs
- ComponentManagerBroker.cs
- DynamicILGenerator.cs
- PocoEntityKeyStrategy.cs
- DynamicMethod.cs
- StringAttributeCollection.cs
- smtppermission.cs
- ConstraintManager.cs
- CreateUserWizard.cs
- SelectionList.cs
- WebConfigurationManager.cs
- DataViewListener.cs