Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / VisualTransition.cs / 1305600 / VisualTransition.cs
// -------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All Rights Reserved. // ------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Windows; using System.Windows.Markup; using System.Windows.Media.Animation; namespace System.Windows { ////// Defines a transition between VisualStates. /// [ContentProperty("Storyboard")] public class VisualTransition : DependencyObject { public VisualTransition() { DynamicStoryboardCompleted = true; ExplicitStoryboardCompleted = true; } ////// Name of the state to transition from. /// public string From { get; set; } ////// Name of the state to transition to. /// public string To { get; set; } ////// Storyboard providing fine grained control of the transition. /// public Storyboard Storyboard { get; set; } ////// Duration of the transition. /// [TypeConverter(typeof(System.Windows.DurationConverter))] public Duration GeneratedDuration { get { return _generatedDuration; } set { _generatedDuration = value; } } ////// Easing Function for the transition /// public IEasingFunction GeneratedEasingFunction { get; set; } internal bool IsDefault { get { return From == null && To == null; } } internal bool DynamicStoryboardCompleted { get; set; } internal bool ExplicitStoryboardCompleted { get; set; } private Duration _generatedDuration = new Duration(new TimeSpan()); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. // -------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All Rights Reserved. // ------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Windows; using System.Windows.Markup; using System.Windows.Media.Animation; namespace System.Windows { ////// Defines a transition between VisualStates. /// [ContentProperty("Storyboard")] public class VisualTransition : DependencyObject { public VisualTransition() { DynamicStoryboardCompleted = true; ExplicitStoryboardCompleted = true; } ////// Name of the state to transition from. /// public string From { get; set; } ////// Name of the state to transition to. /// public string To { get; set; } ////// Storyboard providing fine grained control of the transition. /// public Storyboard Storyboard { get; set; } ////// Duration of the transition. /// [TypeConverter(typeof(System.Windows.DurationConverter))] public Duration GeneratedDuration { get { return _generatedDuration; } set { _generatedDuration = value; } } ////// Easing Function for the transition /// public IEasingFunction GeneratedEasingFunction { get; set; } internal bool IsDefault { get { return From == null && To == null; } } internal bool DynamicStoryboardCompleted { get; set; } internal bool ExplicitStoryboardCompleted { get; set; } private Duration _generatedDuration = new Duration(new TimeSpan()); } } // 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
- Point3DConverter.cs
- UnsafeNativeMethods.cs
- CodeMemberProperty.cs
- AssertSection.cs
- followingquery.cs
- PtsPage.cs
- DictionaryContent.cs
- StructuredTypeEmitter.cs
- GestureRecognizer.cs
- ToolstripProfessionalRenderer.cs
- OdbcConnectionString.cs
- EntityDataSourceEntitySetNameItem.cs
- QueryExpr.cs
- ContextMarshalException.cs
- ContentWrapperAttribute.cs
- RegularExpressionValidator.cs
- Pkcs9Attribute.cs
- LexicalChunk.cs
- TableAdapterManagerGenerator.cs
- HierarchicalDataTemplate.cs
- CapiHashAlgorithm.cs
- SelectionRange.cs
- MeasureData.cs
- IgnoreFileBuildProvider.cs
- RegisteredArrayDeclaration.cs
- GridViewEditEventArgs.cs
- IApplicationTrustManager.cs
- Html32TextWriter.cs
- MaskedTextBox.cs
- TargetParameterCountException.cs
- ObjectManager.cs
- HtmlHead.cs
- ConfigXmlCDataSection.cs
- ViewPort3D.cs
- RemotingException.cs
- DoubleAnimationUsingKeyFrames.cs
- UnSafeCharBuffer.cs
- DataBoundLiteralControl.cs
- SmtpMail.cs
- TextModifier.cs
- SourceFileBuildProvider.cs
- TypeConverterHelper.cs
- DragStartedEventArgs.cs
- DbConnectionStringBuilder.cs
- ButtonChrome.cs
- DataRelationCollection.cs
- MSHTMLHost.cs
- WorkflowInstance.cs
- DocumentAutomationPeer.cs
- ListViewItemEventArgs.cs
- CommandSet.cs
- ColumnHeaderCollectionEditor.cs
- ExecutionPropertyManager.cs
- MethodBuilderInstantiation.cs
- XAMLParseException.cs
- Action.cs
- IdentityReference.cs
- AuthenticationException.cs
- Maps.cs
- Pen.cs
- DbExpressionBuilder.cs
- KeyConverter.cs
- BamlResourceContent.cs
- HashHelper.cs
- FindRequestContext.cs
- DataGridColumnsPage.cs
- SecurityTokenParametersEnumerable.cs
- NonClientArea.cs
- ErrorStyle.cs
- PageParser.cs
- SoapHeaderAttribute.cs
- ExtractorMetadata.cs
- JoinTreeSlot.cs
- XmlNode.cs
- SurrogateSelector.cs
- TraceContextRecord.cs
- ManagementDateTime.cs
- SymLanguageType.cs
- MatrixUtil.cs
- PopupEventArgs.cs
- HopperCache.cs
- XmlSignatureProperties.cs
- HttpCachePolicy.cs
- InnerItemCollectionView.cs
- ConfigXmlText.cs
- ZipIOBlockManager.cs
- AccessDataSourceWizardForm.cs
- FilterRepeater.cs
- StreamGeometry.cs
- DataExpression.cs
- DynamicDataExtensions.cs
- XslCompiledTransform.cs
- SerializationEventsCache.cs
- SectionVisual.cs
- DbXmlEnabledProviderManifest.cs
- transactioncontext.cs
- MemoryMappedFile.cs
- HtmlInputHidden.cs
- Queue.cs
- EntityClassGenerator.cs