Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Media / Animation / PauseStoryboard.cs / 1 / PauseStoryboard.cs
/****************************************************************************\ * * File: PauseStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * is paused. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// PauseStoryboard will call pause on its Storyboard reference when /// it is triggered. /// public sealed class PauseStoryboard : 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.Pause(containingFE); } else { storyboard.Pause(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: PauseStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * is paused. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// PauseStoryboard will call pause on its Storyboard reference when /// it is triggered. /// public sealed class PauseStoryboard : 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.Pause(containingFE); } else { storyboard.Pause(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
- ToolStripDropDownButton.cs
- ApplicationSecurityManager.cs
- LoadRetryConstantStrategy.cs
- Int16AnimationBase.cs
- SendMessageContent.cs
- _AuthenticationState.cs
- DataBindingList.cs
- _FixedSizeReader.cs
- ByteConverter.cs
- DetailsViewPagerRow.cs
- RestClientProxyHandler.cs
- CodeArrayCreateExpression.cs
- ApplicationServiceHelper.cs
- ValueType.cs
- SystemNetworkInterface.cs
- ModelItemImpl.cs
- CodeAttributeDeclarationCollection.cs
- Int16KeyFrameCollection.cs
- LocalValueEnumerator.cs
- Pair.cs
- InfoCardX509Validator.cs
- ProviderConnectionPointCollection.cs
- Compiler.cs
- MethodAccessException.cs
- InputProviderSite.cs
- FixedSOMPageConstructor.cs
- cookiecontainer.cs
- DataGridPagerStyle.cs
- MimeWriter.cs
- EntityEntry.cs
- PageThemeCodeDomTreeGenerator.cs
- _DigestClient.cs
- StoreContentChangedEventArgs.cs
- TextShapeableCharacters.cs
- OleDbRowUpdatedEvent.cs
- DataGridViewButtonColumn.cs
- TextElement.cs
- FileVersion.cs
- BaseAppDomainProtocolHandler.cs
- SoapElementAttribute.cs
- SortedList.cs
- PerformanceCounterPermissionEntry.cs
- TypedReference.cs
- categoryentry.cs
- ChangePasswordDesigner.cs
- ResourceDictionary.cs
- ReferenceConverter.cs
- ListViewCancelEventArgs.cs
- GenericAuthenticationEventArgs.cs
- ContractUtils.cs
- SafeFindHandle.cs
- PkcsUtils.cs
- UrlAuthFailedErrorFormatter.cs
- FormsAuthenticationTicket.cs
- TimeZoneInfo.cs
- XmlIgnoreAttribute.cs
- EditorZone.cs
- EmbeddedMailObjectsCollection.cs
- GridSplitter.cs
- RepeaterItem.cs
- CanonicalFontFamilyReference.cs
- Positioning.cs
- CallbackValidatorAttribute.cs
- DataGridViewSelectedCellCollection.cs
- ListParaClient.cs
- MaskPropertyEditor.cs
- TagNameToTypeMapper.cs
- ArcSegment.cs
- ListComponentEditor.cs
- WorkItem.cs
- GeometryHitTestResult.cs
- XsltArgumentList.cs
- AbsoluteQuery.cs
- QueryProcessor.cs
- DeferredElementTreeState.cs
- ConfigurationSectionCollection.cs
- ResourceExpression.cs
- Rfc2898DeriveBytes.cs
- Timer.cs
- ControlTemplate.cs
- BindUriHelper.cs
- UnitySerializationHolder.cs
- DetailsViewInsertedEventArgs.cs
- WebPartsSection.cs
- MatrixConverter.cs
- XmlElementCollection.cs
- WebConvert.cs
- Keyboard.cs
- AuthorizationContext.cs
- BindingMAnagerBase.cs
- SetStoryboardSpeedRatio.cs
- ellipse.cs
- CharConverter.cs
- ActivityCompletionCallbackWrapper.cs
- InkCollectionBehavior.cs
- DefaultValueAttribute.cs
- DataGridViewRowPostPaintEventArgs.cs
- AuthenticateEventArgs.cs
- ListBoxItem.cs
- Image.cs