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
- BamlVersionHeader.cs
- XmlQueryTypeFactory.cs
- SoapIgnoreAttribute.cs
- ShaperBuffers.cs
- PageRanges.cs
- TransactionWaitAsyncResult.cs
- IgnoreSectionHandler.cs
- ComponentCollection.cs
- Stream.cs
- PocoEntityKeyStrategy.cs
- BaseCollection.cs
- XNodeValidator.cs
- XmlHierarchyData.cs
- BridgeDataReader.cs
- GroupBox.cs
- RepeatBehaviorConverter.cs
- SemaphoreSlim.cs
- SqlNodeAnnotation.cs
- FullTextState.cs
- ScaleTransform.cs
- ToolStripManager.cs
- ModelToObjectValueConverter.cs
- WebProxyScriptElement.cs
- LocatorGroup.cs
- StyleTypedPropertyAttribute.cs
- HtmlShimManager.cs
- PointConverter.cs
- objectquery_tresulttype.cs
- LinearKeyFrames.cs
- SpeechUI.cs
- ADMembershipProvider.cs
- ByteStreamGeometryContext.cs
- XmlWrappingWriter.cs
- AddInStore.cs
- Activity.cs
- WebPartMovingEventArgs.cs
- State.cs
- Membership.cs
- ExpressionNode.cs
- StringValidator.cs
- Exceptions.cs
- TableRow.cs
- EntityDesignerDataSourceView.cs
- DummyDataSource.cs
- PropertyPath.cs
- UncommonField.cs
- SchemaNamespaceManager.cs
- Maps.cs
- StrongNameKeyPair.cs
- BufferAllocator.cs
- RuntimeEnvironment.cs
- UserNamePasswordValidator.cs
- SByteStorage.cs
- Selection.cs
- CodePageUtils.cs
- DependencyObjectProvider.cs
- XmlSchemaAttributeGroupRef.cs
- Rijndael.cs
- SystemWebSectionGroup.cs
- RegexCharClass.cs
- DataServiceRequest.cs
- Quaternion.cs
- ProcessThread.cs
- OwnerDrawPropertyBag.cs
- WeakEventTable.cs
- Fonts.cs
- HttpCookie.cs
- recordstatescratchpad.cs
- EventManager.cs
- ComplexTypeEmitter.cs
- FixedFlowMap.cs
- TextContainerHelper.cs
- ProxyManager.cs
- HelloOperationAsyncResult.cs
- NameValueSectionHandler.cs
- HtmlMeta.cs
- NativeCompoundFileAPIs.cs
- AssemblyBuilder.cs
- SessionStateItemCollection.cs
- PeerContact.cs
- TrustLevelCollection.cs
- MonikerHelper.cs
- TabControlToolboxItem.cs
- Border.cs
- UrlPropertyAttribute.cs
- OdbcParameter.cs
- LocalizableAttribute.cs
- XmlDictionaryReaderQuotas.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ToolboxItem.cs
- XPathMessageFilterElementCollection.cs
- ContentOperations.cs
- AudienceUriMode.cs
- Style.cs
- XmlUrlResolver.cs
- NonClientArea.cs
- XmlEntity.cs
- LambdaSerializationException.cs
- UInt64Storage.cs
- WebPageTraceListener.cs