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
- MissingMemberException.cs
- AutoGeneratedFieldProperties.cs
- GenericUriParser.cs
- adornercollection.cs
- ThaiBuddhistCalendar.cs
- DataGridTableCollection.cs
- InputReport.cs
- ApplicationTrust.cs
- SecureStringHasher.cs
- SqlPersonalizationProvider.cs
- ExecutorLocksHeldException.cs
- NodeFunctions.cs
- CodeGotoStatement.cs
- AccessedThroughPropertyAttribute.cs
- ToolConsole.cs
- SiteMapNodeItem.cs
- LogExtentCollection.cs
- Visual3DCollection.cs
- SettingsBindableAttribute.cs
- FirstMatchCodeGroup.cs
- securitycriticaldata.cs
- WebEventCodes.cs
- SiteMapProvider.cs
- SiteMapProvider.cs
- InteropAutomationProvider.cs
- FontUnitConverter.cs
- UICuesEvent.cs
- BindingContext.cs
- ConfigurationElementCollection.cs
- _FtpControlStream.cs
- SingleStorage.cs
- ProxyWebPart.cs
- HuffCodec.cs
- ScaleTransform3D.cs
- LineBreak.cs
- ScrollBarRenderer.cs
- EventDescriptorCollection.cs
- TableLayoutStyle.cs
- ProfileSettingsCollection.cs
- xmlfixedPageInfo.cs
- TextViewDesigner.cs
- DrawingGroup.cs
- ZipIOFileItemStream.cs
- WindowsTooltip.cs
- DataGridTextBoxColumn.cs
- ValueSerializerAttribute.cs
- ObjectPersistData.cs
- RawStylusActions.cs
- CodeMemberMethod.cs
- COM2ExtendedUITypeEditor.cs
- RankException.cs
- DataGridViewComboBoxColumn.cs
- OdbcConnectionOpen.cs
- login.cs
- GridViewCancelEditEventArgs.cs
- WebPartTransformerAttribute.cs
- EntityCommandExecutionException.cs
- ObjectParameter.cs
- ScriptingJsonSerializationSection.cs
- ControlCollection.cs
- SettingsPropertyCollection.cs
- DesignerVerbCollection.cs
- XsltCompileContext.cs
- StyleSelector.cs
- ReadOnlyCollection.cs
- SqlMethodAttribute.cs
- ComboBoxDesigner.cs
- ScriptBehaviorDescriptor.cs
- ItemList.cs
- SrgsElementFactoryCompiler.cs
- DateTimeAutomationPeer.cs
- Utils.cs
- Splitter.cs
- BypassElement.cs
- sqlcontext.cs
- SystemTcpStatistics.cs
- StylusTip.cs
- AppSecurityManager.cs
- PerformanceCounters.cs
- DockAndAnchorLayout.cs
- SrgsElement.cs
- FontEmbeddingManager.cs
- NetMsmqSecurity.cs
- XsdBuildProvider.cs
- File.cs
- TypeValidationEventArgs.cs
- ActivitiesCollection.cs
- ErrorsHelper.cs
- GifBitmapDecoder.cs
- HtmlTableCellCollection.cs
- DrawToolTipEventArgs.cs
- documentsequencetextcontainer.cs
- UInt64Storage.cs
- LinearKeyFrames.cs
- AssociationTypeEmitter.cs
- ExpressionSelection.cs
- LinearGradientBrush.cs
- MenuBase.cs
- SqlBulkCopyColumnMapping.cs
- EndOfStreamException.cs