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
- ConfigurationPropertyAttribute.cs
- TabControlCancelEvent.cs
- ContentDisposition.cs
- DataGridViewIntLinkedList.cs
- ParameterRetriever.cs
- MemoryPressure.cs
- DeferredTextReference.cs
- AccessViolationException.cs
- TextEndOfSegment.cs
- WebServicesInteroperability.cs
- ExpressionBinding.cs
- XmlDocument.cs
- WsdlWriter.cs
- BaseTemplateParser.cs
- CompoundFileReference.cs
- LoginDesigner.cs
- CultureTableRecord.cs
- AuthenticationConfig.cs
- List.cs
- Registration.cs
- HebrewNumber.cs
- WindowsListViewItem.cs
- RealProxy.cs
- DbFunctionCommandTree.cs
- PresentationTraceSources.cs
- ErrorHandler.cs
- ToolStripItemDesigner.cs
- VisualTreeUtils.cs
- StorageMappingItemCollection.cs
- SmtpClient.cs
- ObjectSet.cs
- ActivityExecutionWorkItem.cs
- PostBackTrigger.cs
- Matrix3DValueSerializer.cs
- IisTraceWebEventProvider.cs
- TypeViewSchema.cs
- SqlDataSourceConfigureSortForm.cs
- MessageSmuggler.cs
- PictureBox.cs
- IWorkflowDebuggerService.cs
- RecordManager.cs
- BindingsCollection.cs
- Pens.cs
- COM2EnumConverter.cs
- FrameAutomationPeer.cs
- CheckBoxPopupAdapter.cs
- ArgumentOutOfRangeException.cs
- XmlBufferReader.cs
- ConnectionManagementElement.cs
- keycontainerpermission.cs
- DynamicMethod.cs
- AuthenticateEventArgs.cs
- ClientRuntimeConfig.cs
- InvalidAsynchronousStateException.cs
- XPathBinder.cs
- Exception.cs
- ControlValuePropertyAttribute.cs
- ServiceConfigurationTraceRecord.cs
- CroppedBitmap.cs
- Triangle.cs
- MediaContextNotificationWindow.cs
- DependencyPropertyValueSerializer.cs
- _AutoWebProxyScriptWrapper.cs
- _NtlmClient.cs
- X509RecipientCertificateClientElement.cs
- HtmlProps.cs
- QuaternionConverter.cs
- SimpleExpression.cs
- WarningException.cs
- Panel.cs
- CompositeKey.cs
- HighlightComponent.cs
- CommonDialog.cs
- LinkButton.cs
- PropertyItemInternal.cs
- OciEnlistContext.cs
- DiagnosticsConfiguration.cs
- IItemProperties.cs
- BooleanKeyFrameCollection.cs
- SplineKeyFrames.cs
- UniqueIdentifierService.cs
- ExtensionSimplifierMarkupObject.cs
- SortQuery.cs
- serverconfig.cs
- BindingExpressionBase.cs
- UInt64.cs
- InputScope.cs
- FlowDocumentReader.cs
- XPathParser.cs
- GcSettings.cs
- WindowsSecurityTokenAuthenticator.cs
- RSAOAEPKeyExchangeFormatter.cs
- LabelAutomationPeer.cs
- ValidatorUtils.cs
- Delegate.cs
- XmlSchemaAll.cs
- SecurityKeyUsage.cs
- WebPartUserCapability.cs
- RelatedView.cs
- PreviewKeyDownEventArgs.cs