Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- __FastResourceComparer.cs
- Point3DAnimationUsingKeyFrames.cs
- CheckBoxPopupAdapter.cs
- DataBinder.cs
- dbdatarecord.cs
- DescriptionAttribute.cs
- DurableInstanceProvider.cs
- QuaternionValueSerializer.cs
- GridView.cs
- _ScatterGatherBuffers.cs
- ComponentResourceManager.cs
- TemplateControlParser.cs
- BindingExpressionUncommonField.cs
- ApplicationActivator.cs
- TreeNodeStyleCollection.cs
- Overlapped.cs
- MetadataItemEmitter.cs
- SamlAdvice.cs
- _HelperAsyncResults.cs
- Renderer.cs
- DynamicDocumentPaginator.cs
- PageParserFilter.cs
- DesignerActionVerbItem.cs
- RoleBoolean.cs
- PersonalizableAttribute.cs
- DataGridViewSelectedRowCollection.cs
- SmtpException.cs
- XmlArrayItemAttribute.cs
- panel.cs
- WebColorConverter.cs
- XamlTemplateSerializer.cs
- ReversePositionQuery.cs
- HttpClientChannel.cs
- Pkcs9Attribute.cs
- TypeInfo.cs
- CreateUserWizardStep.cs
- TargetPerspective.cs
- SymbolMethod.cs
- MDIWindowDialog.cs
- validationstate.cs
- CollectionViewSource.cs
- ScriptResourceInfo.cs
- StringAttributeCollection.cs
- SecurityState.cs
- ListViewCommandEventArgs.cs
- EntityDataSourceUtil.cs
- COM2IDispatchConverter.cs
- ChildrenQuery.cs
- QilSortKey.cs
- ParameterToken.cs
- DispatcherExceptionEventArgs.cs
- TextTreePropertyUndoUnit.cs
- CheckBoxList.cs
- XmlDataSourceNodeDescriptor.cs
- TransactedReceiveScope.cs
- DPTypeDescriptorContext.cs
- EncoderFallback.cs
- WrappedKeySecurityTokenParameters.cs
- AssociatedControlConverter.cs
- ExceptionUtil.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlTypeAttribute.cs
- PackWebResponse.cs
- EntityClientCacheKey.cs
- Canvas.cs
- EditorZoneBase.cs
- SchemaMapping.cs
- Int16.cs
- MemberAccessException.cs
- ProcessManager.cs
- TextBox.cs
- ReadWriteSpinLock.cs
- TypeInfo.cs
- TextFormatterContext.cs
- TextEditorThreadLocalStore.cs
- Serializer.cs
- VirtualPathUtility.cs
- StrokeNodeOperations2.cs
- SqlDataRecord.cs
- CompiledQueryCacheKey.cs
- UriTemplateCompoundPathSegment.cs
- FrameworkContentElementAutomationPeer.cs
- WmlCommandAdapter.cs
- SchemaNamespaceManager.cs
- XmlHelper.cs
- UriTemplateLiteralQueryValue.cs
- SessionPageStateSection.cs
- ToolStripOverflowButton.cs
- ComplexLine.cs
- SqlConnectionString.cs
- State.cs
- EncryptedKey.cs
- HostExecutionContextManager.cs
- SqlNodeAnnotations.cs
- PageAction.cs
- AttributeEmitter.cs
- TypeToArgumentTypeConverter.cs
- HttpDictionary.cs
- Visitor.cs
- InboundActivityHelper.cs