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
- AmbiguousMatchException.cs
- BitmapEffectOutputConnector.cs
- ControlPropertyNameConverter.cs
- DateTimeOffsetAdapter.cs
- DrawingContextDrawingContextWalker.cs
- WinHttpWebProxyFinder.cs
- InvalidProgramException.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XmlWriterTraceListener.cs
- SafeBitVector32.cs
- MenuCommands.cs
- RoutedUICommand.cs
- PrincipalPermissionMode.cs
- ComponentChangedEvent.cs
- DbConnectionPool.cs
- TextureBrush.cs
- EntryPointNotFoundException.cs
- RC2.cs
- HtmlInputCheckBox.cs
- DynamicDocumentPaginator.cs
- Object.cs
- RepeaterCommandEventArgs.cs
- BoolExpression.cs
- Transform.cs
- AggregateNode.cs
- Rectangle.cs
- TagPrefixAttribute.cs
- HiddenField.cs
- PlatformNotSupportedException.cs
- Scripts.cs
- TextEditorParagraphs.cs
- SoapAttributeOverrides.cs
- SHA512.cs
- ServicePointManagerElement.cs
- SamlSecurityTokenAuthenticator.cs
- OracleEncoding.cs
- codemethodreferenceexpression.cs
- DeploymentSection.cs
- Menu.cs
- SimpleBitVector32.cs
- IdnMapping.cs
- EntityContainer.cs
- PhysicalFontFamily.cs
- DefaultPropertyAttribute.cs
- XmlILModule.cs
- LostFocusEventManager.cs
- DrawingCollection.cs
- Logging.cs
- TextBoxLine.cs
- StorageRoot.cs
- SimpleWebHandlerParser.cs
- CFStream.cs
- NavigationService.cs
- RefType.cs
- Vector3D.cs
- CryptoConfig.cs
- ButtonChrome.cs
- FontWeightConverter.cs
- TimerEventSubscription.cs
- Rect.cs
- WindowsScroll.cs
- OrderedDictionary.cs
- RecordsAffectedEventArgs.cs
- AssemblyHash.cs
- ProxyFragment.cs
- ImpersonationContext.cs
- WmlLabelAdapter.cs
- ListViewInsertionMark.cs
- NativeMethods.cs
- DataGridViewCellStyle.cs
- ProxyWebPartConnectionCollection.cs
- EndpointBehaviorElementCollection.cs
- SafeEventLogReadHandle.cs
- FacetValues.cs
- TreeIterator.cs
- QilTernary.cs
- Animatable.cs
- xml.cs
- TrackingStringDictionary.cs
- SubclassTypeValidator.cs
- WebProxyScriptElement.cs
- JsonFormatReaderGenerator.cs
- DrawingAttributes.cs
- WindowsListViewGroupSubsetLink.cs
- DataListItemCollection.cs
- OutputWindow.cs
- ClusterRegistryConfigurationProvider.cs
- HttpBufferlessInputStream.cs
- odbcmetadatacollectionnames.cs
- ExternalException.cs
- State.cs
- Suspend.cs
- EntityCommandCompilationException.cs
- Message.cs
- DataRecordObjectView.cs
- AffineTransform3D.cs
- WsatServiceCertificate.cs
- TreeNodeCollection.cs
- Encoder.cs
- ResponseStream.cs