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
- InputScopeManager.cs
- PrintingPermissionAttribute.cs
- PeerEndPoint.cs
- XmlValidatingReader.cs
- NameSpaceExtractor.cs
- LoadedEvent.cs
- FileNameEditor.cs
- ActiveXMessageFormatter.cs
- PrintPreviewGraphics.cs
- TextServicesManager.cs
- ByteAnimationBase.cs
- Formatter.cs
- HtmlInputRadioButton.cs
- DataGridViewTopRowAccessibleObject.cs
- TogglePattern.cs
- CodeNamespaceCollection.cs
- TrustManager.cs
- CanonicalFontFamilyReference.cs
- ParserOptions.cs
- Tag.cs
- LayoutEditorPart.cs
- ExpressionBuilderCollection.cs
- MetadataPropertyvalue.cs
- CompositionTarget.cs
- NetworkCredential.cs
- DataGridViewCellStyleEditor.cs
- PictureBox.cs
- UnionCodeGroup.cs
- CfgSemanticTag.cs
- PropertyOrder.cs
- OleDbTransaction.cs
- SoapEnumAttribute.cs
- UserMapPath.cs
- EventProvider.cs
- ViewStateChangedEventArgs.cs
- Point4D.cs
- SecurityCriticalDataForSet.cs
- ResolveNameEventArgs.cs
- VirtualDirectoryMapping.cs
- EntityCollection.cs
- WebEvents.cs
- SatelliteContractVersionAttribute.cs
- DesignerOptionService.cs
- AppendHelper.cs
- BackStopAuthenticationModule.cs
- ServiceModelActivity.cs
- SafeRightsManagementSessionHandle.cs
- JsonByteArrayDataContract.cs
- QuaternionRotation3D.cs
- RenderCapability.cs
- StatusBarDesigner.cs
- Parser.cs
- TextFormatterImp.cs
- DrawToolTipEventArgs.cs
- BinaryNode.cs
- TableAdapterManagerHelper.cs
- CancellationTokenRegistration.cs
- AuthenticationConfig.cs
- DataGridViewImageColumn.cs
- WizardForm.cs
- OutputCacheSettingsSection.cs
- AsyncWaitHandle.cs
- RoutedEvent.cs
- Size3D.cs
- HatchBrush.cs
- XamlStackWriter.cs
- Transactions.cs
- Container.cs
- SqlConnectionPoolGroupProviderInfo.cs
- _OSSOCK.cs
- DataBindingExpressionBuilder.cs
- PointLight.cs
- SigningDialog.cs
- DataControlFieldCell.cs
- ChainedAsyncResult.cs
- UTF7Encoding.cs
- LinkLabelLinkClickedEvent.cs
- IProvider.cs
- EnumConverter.cs
- RC2CryptoServiceProvider.cs
- MultiByteCodec.cs
- TableRowGroupCollection.cs
- BaseInfoTable.cs
- Vertex.cs
- GB18030Encoding.cs
- SharedConnectionListener.cs
- RegistrationServices.cs
- CommandHelper.cs
- XPathNodeInfoAtom.cs
- ProgressChangedEventArgs.cs
- TabPage.cs
- BitmapData.cs
- Utilities.cs
- EntityViewContainer.cs
- EpmSourcePathSegment.cs
- DependentList.cs
- ThreadStaticAttribute.cs
- ProxyElement.cs
- ObjectQueryExecutionPlan.cs
- _ShellExpression.cs