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
- RuntimeWrappedException.cs
- VectorCollectionConverter.cs
- VBIdentifierTrimConverter.cs
- XmlMemberMapping.cs
- HttpApplicationStateWrapper.cs
- Focus.cs
- DefaultValueAttribute.cs
- SecurityTokenTypes.cs
- HtmlToClrEventProxy.cs
- SharedPersonalizationStateInfo.cs
- CardSpaceException.cs
- ExpressionBinding.cs
- FormsAuthentication.cs
- BCryptNative.cs
- WebBrowser.cs
- TextParaLineResult.cs
- UserControl.cs
- NameTable.cs
- QueryBranchOp.cs
- WCFModelStrings.Designer.cs
- NavigateEvent.cs
- CompiledXpathExpr.cs
- ResourcePermissionBase.cs
- LogicalChannel.cs
- UnsafeNetInfoNativeMethods.cs
- LocalizableAttribute.cs
- XmlSchemaElement.cs
- httpapplicationstate.cs
- columnmapkeybuilder.cs
- OperationAbortedException.cs
- LineProperties.cs
- Int64Storage.cs
- RecognizedAudio.cs
- ArraySegment.cs
- SqlCharStream.cs
- FileDialog.cs
- Internal.cs
- DoubleAnimation.cs
- RegionData.cs
- Boolean.cs
- DataSvcMapFileSerializer.cs
- ParameterCollection.cs
- ChangeTracker.cs
- EdmSchemaError.cs
- EntityRecordInfo.cs
- DataViewManagerListItemTypeDescriptor.cs
- BevelBitmapEffect.cs
- FileAuthorizationModule.cs
- ByteViewer.cs
- ReferencedCollectionType.cs
- Error.cs
- EntityKeyElement.cs
- querybuilder.cs
- ComplexType.cs
- PerfService.cs
- FormsIdentity.cs
- OdbcConnectionOpen.cs
- ISAPIWorkerRequest.cs
- ScriptingSectionGroup.cs
- MenuItemStyleCollection.cs
- BehaviorEditorPart.cs
- WindowsPen.cs
- RegexNode.cs
- TimeoutHelper.cs
- DbExpressionRules.cs
- SQLMembershipProvider.cs
- SimpleMailWebEventProvider.cs
- UnsafeNetInfoNativeMethods.cs
- Decorator.cs
- ListViewContainer.cs
- QilGenerator.cs
- ProcessHostConfigUtils.cs
- MulticastIPAddressInformationCollection.cs
- KeyValueSerializer.cs
- ValueConversionAttribute.cs
- EntityDataReader.cs
- DocumentApplicationDocumentViewer.cs
- XmlILAnnotation.cs
- CultureInfoConverter.cs
- ObjectPersistData.cs
- Keyboard.cs
- XsltFunctions.cs
- ModelItemExtensions.cs
- InputBuffer.cs
- SessionState.cs
- SystemResourceHost.cs
- EntityRecordInfo.cs
- ImageBrush.cs
- StructuredProperty.cs
- LambdaCompiler.Unary.cs
- ECDsa.cs
- SqlMethodTransformer.cs
- ObjectDisposedException.cs
- BrowserCapabilitiesFactoryBase.cs
- ValueOfAction.cs
- Misc.cs
- PointAnimationClockResource.cs
- NavigationPropertyEmitter.cs
- DefaultValueConverter.cs
- HandlerWithFactory.cs