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
- IdnMapping.cs
- CodePageEncoding.cs
- SoapTypeAttribute.cs
- TogglePattern.cs
- ElementMarkupObject.cs
- MaterialCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- EventBookmark.cs
- WindowsImpersonationContext.cs
- TypeToArgumentTypeConverter.cs
- VariantWrapper.cs
- List.cs
- XmlSchemaGroupRef.cs
- MediaPlayerState.cs
- ToolStripButton.cs
- mediaeventshelper.cs
- RegistrySecurity.cs
- SemanticResolver.cs
- FastPropertyAccessor.cs
- LinqTreeNodeEvaluator.cs
- PriorityBinding.cs
- WebPartMinimizeVerb.cs
- TextTreeUndoUnit.cs
- PropertyMapper.cs
- GridViewRowPresenter.cs
- COM2ComponentEditor.cs
- CodeStatementCollection.cs
- ThemeDictionaryExtension.cs
- ConfigPathUtility.cs
- StringSource.cs
- CompatibleComparer.cs
- ConfigurationCollectionAttribute.cs
- initElementDictionary.cs
- StreamResourceInfo.cs
- RectAnimation.cs
- PassportIdentity.cs
- InteropBitmapSource.cs
- Site.cs
- ProvidersHelper.cs
- processwaithandle.cs
- Expander.cs
- OverflowException.cs
- newinstructionaction.cs
- SqlTopReducer.cs
- httpstaticobjectscollection.cs
- CodeDomLoader.cs
- ManipulationCompletedEventArgs.cs
- PropertyKey.cs
- ItemsControl.cs
- ExtendedProperty.cs
- XmlSchemaProviderAttribute.cs
- PointAnimationBase.cs
- DataStreams.cs
- InvalidOperationException.cs
- PointConverter.cs
- ConnectionPoint.cs
- WebScriptServiceHostFactory.cs
- __ComObject.cs
- DataServiceRequestException.cs
- RepeaterItem.cs
- PerformanceCounterCategory.cs
- InheritanceAttribute.cs
- TableFieldsEditor.cs
- Math.cs
- QilGenerator.cs
- SplitterCancelEvent.cs
- ScopeElement.cs
- XmlFormatExtensionAttribute.cs
- DataRowIndexBuffer.cs
- ConfigurationStrings.cs
- HtmlElementErrorEventArgs.cs
- FuncTypeConverter.cs
- JsonDeserializer.cs
- WebPartCatalogCloseVerb.cs
- MenuItemStyleCollection.cs
- ProfileSettingsCollection.cs
- StringValueSerializer.cs
- FileDialogCustomPlacesCollection.cs
- compensatingcollection.cs
- AssemblyName.cs
- WriteFileContext.cs
- CacheMemory.cs
- GridItemPattern.cs
- LinqDataSource.cs
- CaseExpr.cs
- ObjectParameter.cs
- CompoundFileReference.cs
- CheckBoxList.cs
- DependencyPropertyHelper.cs
- OleDbSchemaGuid.cs
- PathGeometry.cs
- SerializeAbsoluteContext.cs
- Single.cs
- SelectionEditor.cs
- JsonFormatGeneratorStatics.cs
- XmlDocumentViewSchema.cs
- Registry.cs
- ExtensionFile.cs
- DashStyle.cs
- CalendarButtonAutomationPeer.cs