Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / VisualStateChangedEventArgs.cs / 1305600 / VisualStateChangedEventArgs.cs
// -------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All Rights Reserved. // ------------------------------------------------------------------- using System.Windows.Controls; namespace System.Windows { ////// EventArgs for VisualStateGroup.CurrentStateChanging and CurrentStateChanged events. /// ////// This class works on Framework elements, however we call the property 'Control' for name-compat with what SL already released. /// public sealed class VisualStateChangedEventArgs : EventArgs { internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) { _oldState = oldState; _newState = newState; _control = control; _stateGroupsRoot = stateGroupsRoot; } ////// The old state the control is transitioning from /// public VisualState OldState { get { return _oldState; } } ////// The new state the control is transitioning to /// public VisualState NewState { get { return _newState; } } ////// The control involved in the state change /// public FrameworkElement Control { get { return _control; } } ////// The element that contained the VisualStateGroups and/or custom VSM /// public FrameworkElement StateGroupsRoot { get { return _stateGroupsRoot; } } private VisualState _oldState; private VisualState _newState; private FrameworkElement _control; private FrameworkElement _stateGroupsRoot; } } // 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.Windows.Controls; namespace System.Windows { ////// EventArgs for VisualStateGroup.CurrentStateChanging and CurrentStateChanged events. /// ////// This class works on Framework elements, however we call the property 'Control' for name-compat with what SL already released. /// public sealed class VisualStateChangedEventArgs : EventArgs { internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) { _oldState = oldState; _newState = newState; _control = control; _stateGroupsRoot = stateGroupsRoot; } ////// The old state the control is transitioning from /// public VisualState OldState { get { return _oldState; } } ////// The new state the control is transitioning to /// public VisualState NewState { get { return _newState; } } ////// The control involved in the state change /// public FrameworkElement Control { get { return _control; } } ////// The element that contained the VisualStateGroups and/or custom VSM /// public FrameworkElement StateGroupsRoot { get { return _stateGroupsRoot; } } private VisualState _oldState; private VisualState _newState; private FrameworkElement _control; private FrameworkElement _stateGroupsRoot; } } // 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
- WebContext.cs
- SqlUtils.cs
- KnownTypeAttribute.cs
- XamlSerializerUtil.cs
- DataBindingList.cs
- XmlSchemaSet.cs
- CmsInterop.cs
- Control.cs
- IdleTimeoutMonitor.cs
- ValidationRuleCollection.cs
- SettingsPropertyCollection.cs
- UntypedNullExpression.cs
- TreeViewImageKeyConverter.cs
- WriterOutput.cs
- MultiByteCodec.cs
- EventProvider.cs
- CompiledELinqQueryState.cs
- PngBitmapDecoder.cs
- VectorCollectionValueSerializer.cs
- ReadOnlyPropertyMetadata.cs
- XhtmlBasicListAdapter.cs
- DataGridTemplateColumn.cs
- EntityDataSourceContainerNameConverter.cs
- QuaternionAnimationUsingKeyFrames.cs
- DoubleIndependentAnimationStorage.cs
- FormsAuthenticationUserCollection.cs
- Stylus.cs
- XhtmlBasicObjectListAdapter.cs
- DataGridViewCellConverter.cs
- HotSpotCollection.cs
- FixedTextPointer.cs
- ItemCheckedEvent.cs
- ClientTarget.cs
- AuthenticateEventArgs.cs
- ListViewPagedDataSource.cs
- VisualTreeHelper.cs
- OpenTypeLayoutCache.cs
- ByteBufferPool.cs
- ThrowHelper.cs
- CapabilitiesAssignment.cs
- DocumentViewerBase.cs
- ProcessHostFactoryHelper.cs
- Application.cs
- EncodingStreamWrapper.cs
- ClientSideProviderDescription.cs
- StylusPointPropertyId.cs
- TargetConverter.cs
- ListViewItemEventArgs.cs
- HotCommands.cs
- FormViewCommandEventArgs.cs
- StringHelper.cs
- OptimizerPatterns.cs
- DefaultCompensation.cs
- ControlOperationBehavior.cs
- IResourceProvider.cs
- SQLResource.cs
- ConfigurationSettings.cs
- Reference.cs
- IInstanceContextProvider.cs
- ArrayTypeMismatchException.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- CodeCompiler.cs
- KeyValuePair.cs
- AffineTransform3D.cs
- HtmlAnchor.cs
- MenuItemCollection.cs
- CapabilitiesAssignment.cs
- QilCloneVisitor.cs
- TagElement.cs
- TransformerInfoCollection.cs
- _ListenerRequestStream.cs
- CryptoKeySecurity.cs
- TypeViewSchema.cs
- xdrvalidator.cs
- BulletedListEventArgs.cs
- safelink.cs
- InternalsVisibleToAttribute.cs
- ReferenceSchema.cs
- MsmqNonTransactedPoisonHandler.cs
- LayoutUtils.cs
- WebEventCodes.cs
- CreateUserWizardDesigner.cs
- IsolatedStorage.cs
- ExecutionEngineException.cs
- Validator.cs
- XmlAttributeAttribute.cs
- SqlGatherProducedAliases.cs
- Utility.cs
- BinaryObjectReader.cs
- CounterCreationDataConverter.cs
- EncryptedReference.cs
- Matrix.cs
- IgnoreDataMemberAttribute.cs
- StreamSecurityUpgradeAcceptorBase.cs
- NetworkInformationException.cs
- LayoutSettings.cs
- DataPointer.cs
- XmlSequenceWriter.cs
- MexHttpsBindingElement.cs
- CryptoProvider.cs