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
- _Rfc2616CacheValidators.cs
- OracleInfoMessageEventArgs.cs
- CodeCastExpression.cs
- GenericWebPart.cs
- VisualStyleElement.cs
- DataRelationPropertyDescriptor.cs
- wmiutil.cs
- DataTablePropertyDescriptor.cs
- TrackBar.cs
- TabControlCancelEvent.cs
- RedistVersionInfo.cs
- MailMessageEventArgs.cs
- XmlNodeComparer.cs
- CollectionType.cs
- TableLayoutSettingsTypeConverter.cs
- InstalledVoice.cs
- AssociationSet.cs
- SqlTriggerContext.cs
- ManualResetEvent.cs
- InplaceBitmapMetadataWriter.cs
- ComponentEditorForm.cs
- ToolTipAutomationPeer.cs
- MenuCommands.cs
- Missing.cs
- SafeBitVector32.cs
- HashLookup.cs
- EntityDataSourceSelectedEventArgs.cs
- LocatorPart.cs
- HtmlInputHidden.cs
- TrackingMemoryStreamFactory.cs
- SecurityContext.cs
- SessionEndedEventArgs.cs
- StrongNameKeyPair.cs
- XhtmlBasicPanelAdapter.cs
- ETagAttribute.cs
- Panel.cs
- CatalogZoneBase.cs
- WebPartUserCapability.cs
- ThumbAutomationPeer.cs
- TableRowGroup.cs
- QueryTask.cs
- Comparer.cs
- SelectorAutomationPeer.cs
- TemplateControlCodeDomTreeGenerator.cs
- StandardBindingOptionalReliableSessionElement.cs
- CodeArgumentReferenceExpression.cs
- CustomWebEventKey.cs
- FixedSOMGroup.cs
- ModelServiceImpl.cs
- AutomationEventArgs.cs
- TypedReference.cs
- TreeNode.cs
- XmlObjectSerializer.cs
- DataPointer.cs
- FormsAuthenticationModule.cs
- CompositeControlDesigner.cs
- OuterGlowBitmapEffect.cs
- XmlBinaryReaderSession.cs
- dbdatarecord.cs
- DataGridViewRowsAddedEventArgs.cs
- MembershipSection.cs
- SqlStream.cs
- CollectionEditorDialog.cs
- XamlClipboardData.cs
- HttpRuntimeSection.cs
- TreeBuilder.cs
- TraceSource.cs
- ErrorInfoXmlDocument.cs
- SoundPlayer.cs
- DataGrid.cs
- CaseStatement.cs
- EmulateRecognizeCompletedEventArgs.cs
- SchemaAttDef.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- x509utils.cs
- OdbcConnectionPoolProviderInfo.cs
- BasicExpressionVisitor.cs
- ImageCollectionCodeDomSerializer.cs
- MarkerProperties.cs
- ApplicationSettingsBase.cs
- SQLInt32.cs
- PassportAuthenticationModule.cs
- HandlerMappingMemo.cs
- OSFeature.cs
- SafeWaitHandle.cs
- SettingsAttributeDictionary.cs
- ReflectionTypeLoadException.cs
- LingerOption.cs
- AccessText.cs
- StructuredTypeInfo.cs
- ConfigXmlReader.cs
- serverconfig.cs
- TypeBuilderInstantiation.cs
- DependencyPropertyConverter.cs
- HtmlFormAdapter.cs
- ElementHostAutomationPeer.cs
- NamespaceList.cs
- Console.cs
- SQLDecimalStorage.cs
- EditorPartChrome.cs