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
- mediaeventshelper.cs
- ADConnectionHelper.cs
- SqlConnectionStringBuilder.cs
- FullTextBreakpoint.cs
- Connection.cs
- InternalConfigEventArgs.cs
- SafeProcessHandle.cs
- returneventsaver.cs
- ExpressionsCollectionEditor.cs
- AmbiguousMatchException.cs
- Int32Collection.cs
- ValidationSummary.cs
- OTFRasterizer.cs
- SimpleMailWebEventProvider.cs
- UnsafeNativeMethodsTablet.cs
- AnimatedTypeHelpers.cs
- ParagraphResult.cs
- HTMLTagNameToTypeMapper.cs
- Facet.cs
- ProcessModule.cs
- DataGridViewHeaderCell.cs
- AppearanceEditorPart.cs
- EncryptedKey.cs
- TextSelectionProcessor.cs
- FlowDocumentReader.cs
- DesignerCategoryAttribute.cs
- ResourcePermissionBase.cs
- DataGridSortCommandEventArgs.cs
- LostFocusEventManager.cs
- SessionIDManager.cs
- HttpWrapper.cs
- LingerOption.cs
- DataReceivedEventArgs.cs
- SQLGuid.cs
- MessageSmuggler.cs
- XPathScanner.cs
- DataSourceSelectArguments.cs
- FontFamilyConverter.cs
- ToolStripOverflow.cs
- DefaultObjectMappingItemCollection.cs
- ObjectStateEntry.cs
- ErrorHandlingReceiver.cs
- SamlAuthorizationDecisionStatement.cs
- ProcessHostFactoryHelper.cs
- DataConnectionHelper.cs
- NCryptNative.cs
- EmbeddedMailObjectCollectionEditor.cs
- Polyline.cs
- MetadataWorkspace.cs
- SAPICategories.cs
- ProcessModuleDesigner.cs
- DynamicDocumentPaginator.cs
- HtmlHead.cs
- OdbcConnectionOpen.cs
- ColumnCollectionEditor.cs
- StreamResourceInfo.cs
- BypassElementCollection.cs
- FamilyMap.cs
- SelectedDatesCollection.cs
- x509utils.cs
- PropertyGridView.cs
- NativeMethods.cs
- ICollection.cs
- PerformanceCounterCategory.cs
- StringKeyFrameCollection.cs
- TypedReference.cs
- XamlBrushSerializer.cs
- BamlBinaryReader.cs
- dataobject.cs
- QilNode.cs
- AppSettingsSection.cs
- ReservationNotFoundException.cs
- HuffModule.cs
- HierarchicalDataSourceDesigner.cs
- ButtonAutomationPeer.cs
- CodeArgumentReferenceExpression.cs
- CreateUserWizardStep.cs
- ExecutionEngineException.cs
- EntityModelSchemaGenerator.cs
- HtmlObjectListAdapter.cs
- DrawingContextDrawingContextWalker.cs
- ButtonChrome.cs
- NativeCppClassAttribute.cs
- TextEndOfParagraph.cs
- PropertyChange.cs
- CqlIdentifiers.cs
- XmlBinaryReader.cs
- InkSerializer.cs
- FrameworkElementAutomationPeer.cs
- Table.cs
- XsltSettings.cs
- CellQuery.cs
- QilValidationVisitor.cs
- FixedElement.cs
- ConfigurationManagerInternalFactory.cs
- ReflectionHelper.cs
- DataMemberFieldConverter.cs
- XamlLoadErrorInfo.cs
- EpmHelper.cs
- safex509handles.cs