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
- BinaryReader.cs
- CommandID.cs
- SchemaTypeEmitter.cs
- StartUpEventArgs.cs
- JoinGraph.cs
- AlphabetConverter.cs
- LineProperties.cs
- JavascriptXmlWriterWrapper.cs
- FileDataSourceCache.cs
- UInt16.cs
- DesignerEventService.cs
- CodeDirectiveCollection.cs
- SQLDoubleStorage.cs
- CallTemplateAction.cs
- SqlGenericUtil.cs
- DelegatedStream.cs
- RTLAwareMessageBox.cs
- WindowsScrollBar.cs
- RadioButtonStandardAdapter.cs
- NonValidatingSecurityTokenAuthenticator.cs
- Msec.cs
- StrokeNodeOperations2.cs
- EpmContentSerializer.cs
- Context.cs
- StateChangeEvent.cs
- CharacterBuffer.cs
- PageVisual.cs
- DescendentsWalkerBase.cs
- DataException.cs
- SafeNativeMemoryHandle.cs
- DataService.cs
- SmiSettersStream.cs
- KeyedHashAlgorithm.cs
- DataGridViewCellConverter.cs
- RotateTransform3D.cs
- ColorConverter.cs
- RulePatternOps.cs
- GlyphRunDrawing.cs
- ToolboxItemCollection.cs
- StatusBarItem.cs
- XsltSettings.cs
- SmiEventSink_DeferedProcessing.cs
- ContainerFilterService.cs
- StylusLogic.cs
- ListViewContainer.cs
- AssemblyInfo.cs
- ImageMapEventArgs.cs
- RegexWorker.cs
- ETagAttribute.cs
- CodeChecksumPragma.cs
- InputEventArgs.cs
- FullTrustAssembly.cs
- PagerSettings.cs
- GreenMethods.cs
- FastPropertyAccessor.cs
- SqlUtil.cs
- Menu.cs
- TextElementCollectionHelper.cs
- BaseTreeIterator.cs
- UInt64Storage.cs
- AssemblyCache.cs
- Literal.cs
- ConstructorBuilder.cs
- HtmlButton.cs
- ArrayExtension.cs
- UrlMapping.cs
- DiscardableAttribute.cs
- TextEffect.cs
- ErrorRuntimeConfig.cs
- WebPartDescription.cs
- Descriptor.cs
- MetabaseReader.cs
- XmlSchemaInclude.cs
- _FtpControlStream.cs
- HandleValueEditor.cs
- EventItfInfo.cs
- ReferenceEqualityComparer.cs
- SrgsNameValueTag.cs
- ButtonBaseAutomationPeer.cs
- OrderablePartitioner.cs
- XXXInfos.cs
- TabletDeviceInfo.cs
- CharEntityEncoderFallback.cs
- BinaryMethodMessage.cs
- Sequence.cs
- DataGridCellAutomationPeer.cs
- ObjectListFieldsPage.cs
- RoutedEventConverter.cs
- DateRangeEvent.cs
- UserControl.cs
- DataAdapter.cs
- FilterException.cs
- Brushes.cs
- MaterialGroup.cs
- IndependentAnimationStorage.cs
- HttpResponseHeader.cs
- ScriptReferenceEventArgs.cs
- DetailsView.cs
- TextSerializer.cs
- BitmapInitialize.cs