Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / ActiveDesignSurfaceEvent.cs / 1 / ActiveDesignSurfaceEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design {
///
/// An event handler for the ActiveDesignSurfaceChanged event.
///
public delegate void ActiveDesignSurfaceChangedEventHandler(object sender, ActiveDesignSurfaceChangedEventArgs e);
///
/// The event args for the ActiveDesignSurface event.
///
public class ActiveDesignSurfaceChangedEventArgs : EventArgs {
private DesignSurface _oldSurface;
private DesignSurface _newSurface;
///
/// Creates a new ActiveDesignSurfaceChangedEventArgs instance.
///
public ActiveDesignSurfaceChangedEventArgs(DesignSurface oldSurface, DesignSurface newSurface) {
_oldSurface = oldSurface;
_newSurface = newSurface;
}
///
/// Gets the design surface that is losing activation.
///
public DesignSurface OldSurface {
get {
return _oldSurface;
}
}
///
/// Gets the design surface that is gaining activation.
///
public DesignSurface NewSurface {
get {
return _newSurface;
}
}
}
}
// 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
- AttributeCollection.cs
- Item.cs
- SymmetricAlgorithm.cs
- FieldNameLookup.cs
- PropertyChangedEventArgs.cs
- StagingAreaInputItem.cs
- ParameterCollection.cs
- DataGridViewIntLinkedList.cs
- EventHandlersDesigner.cs
- EncryptedReference.cs
- MemberAssignment.cs
- IisNotInstalledException.cs
- ExitEventArgs.cs
- SHA256.cs
- SelectionEditor.cs
- TdsParserStaticMethods.cs
- MethodRental.cs
- ProviderException.cs
- SspiSecurityTokenProvider.cs
- JsonByteArrayDataContract.cs
- OutputCacheProviderCollection.cs
- AttributeEmitter.cs
- WsdlServiceChannelBuilder.cs
- ConnectionPoint.cs
- ListViewPagedDataSource.cs
- X509InitiatorCertificateServiceElement.cs
- WinFormsComponentEditor.cs
- ToolStripContentPanel.cs
- Sequence.cs
- KeyValueConfigurationElement.cs
- LocalizeDesigner.cs
- CachingHintValidation.cs
- InArgumentConverter.cs
- XmlUtil.cs
- CanonicalizationDriver.cs
- WindowsFormsHostPropertyMap.cs
- IOThreadScheduler.cs
- HtmlFormParameterWriter.cs
- InputLangChangeEvent.cs
- EventLogWatcher.cs
- ReferencedAssembly.cs
- DragEvent.cs
- TypeBuilder.cs
- DataBindingCollectionEditor.cs
- EntityContainerEmitter.cs
- TreeNodeBindingDepthConverter.cs
- RadioButtonList.cs
- Column.cs
- StorageEntitySetMapping.cs
- HelpInfo.cs
- WorkflowMessageEventArgs.cs
- CheckPair.cs
- ReadOnlyCollectionBase.cs
- PrtCap_Builder.cs
- ImageIndexConverter.cs
- ToolTipAutomationPeer.cs
- BamlTreeNode.cs
- LOSFormatter.cs
- ResizeGrip.cs
- Schema.cs
- TraceHwndHost.cs
- WorkflowMessageEventArgs.cs
- RepeaterItemCollection.cs
- DataGridViewComboBoxCell.cs
- DataServiceQueryProvider.cs
- AssociationSet.cs
- RegularExpressionValidator.cs
- ApplicationTrust.cs
- Context.cs
- QuaternionKeyFrameCollection.cs
- StatusBar.cs
- PostBackOptions.cs
- PrinterResolution.cs
- ArraySubsetEnumerator.cs
- WebPartConnectionsEventArgs.cs
- XMLDiffLoader.cs
- XamlFigureLengthSerializer.cs
- XmlNodeReader.cs
- DependsOnAttribute.cs
- ToolStripDropTargetManager.cs
- DifferencingCollection.cs
- _LoggingObject.cs
- Permission.cs
- COAUTHINFO.cs
- X509CertificateInitiatorServiceCredential.cs
- Triangle.cs
- AdPostCacheSubstitution.cs
- OracleParameterCollection.cs
- ClickablePoint.cs
- EntityTypeBase.cs
- IOThreadScheduler.cs
- DigestTraceRecordHelper.cs
- Sentence.cs
- SharedPersonalizationStateInfo.cs
- SqlConnectionString.cs
- ListControl.cs
- BasePattern.cs
- ToolStripContainerActionList.cs
- XmlSchemaSimpleContentRestriction.cs
- StandardTransformFactory.cs