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
- AssemblyName.cs
- CheckPair.cs
- OleStrCAMarshaler.cs
- StreamAsIStream.cs
- NumberFormatter.cs
- xsdvalidator.cs
- ExeContext.cs
- XmlTypeMapping.cs
- ToolboxComponentsCreatingEventArgs.cs
- __Error.cs
- OptimisticConcurrencyException.cs
- TemplateField.cs
- EventLogTraceListener.cs
- FontFamilyValueSerializer.cs
- EntityTypeEmitter.cs
- InternalBufferOverflowException.cs
- ModelItemCollection.cs
- Native.cs
- DbParameterHelper.cs
- QuadraticBezierSegment.cs
- ButtonBase.cs
- Constraint.cs
- CaseExpr.cs
- NullableDoubleSumAggregationOperator.cs
- EventlogProvider.cs
- StateMachine.cs
- XPathAncestorIterator.cs
- XmlChildEnumerator.cs
- DataRowChangeEvent.cs
- Brush.cs
- CacheSection.cs
- WindowsSysHeader.cs
- InputScope.cs
- StylusButtonEventArgs.cs
- EntityContainer.cs
- connectionpool.cs
- BaseHashHelper.cs
- ScriptReferenceBase.cs
- UserNameServiceElement.cs
- Hashtable.cs
- XPathBuilder.cs
- FontSourceCollection.cs
- CommandID.cs
- XamlWrapperReaders.cs
- Int16.cs
- GuidelineCollection.cs
- TextTreeTextElementNode.cs
- Converter.cs
- HwndHost.cs
- XmlAttributeOverrides.cs
- CryptoStream.cs
- DetailsViewRowCollection.cs
- CollectionViewSource.cs
- ProcessModule.cs
- TextEditorSpelling.cs
- TypeReference.cs
- PnrpPermission.cs
- InvokePatternIdentifiers.cs
- Walker.cs
- MatrixTransform3D.cs
- Exceptions.cs
- HiddenField.cs
- ExitEventArgs.cs
- DataGridCellsPresenter.cs
- PrintDialog.cs
- ProtectedProviderSettings.cs
- UrlUtility.cs
- DecoderReplacementFallback.cs
- BaseTemplateBuildProvider.cs
- InputLanguageSource.cs
- CodeObject.cs
- SqlNotificationEventArgs.cs
- GifBitmapDecoder.cs
- ServiceInstallComponent.cs
- SamlSerializer.cs
- FilterException.cs
- ReadWriteObjectLock.cs
- FtpWebRequest.cs
- FullTrustAssemblyCollection.cs
- DataRowView.cs
- InterleavedZipPartStream.cs
- CommandConverter.cs
- DynamicILGenerator.cs
- PropertyTabChangedEvent.cs
- ObjectDisposedException.cs
- LongAverageAggregationOperator.cs
- ImageAutomationPeer.cs
- GroupQuery.cs
- XmlCharCheckingWriter.cs
- XmlMapping.cs
- ThemeInfoAttribute.cs
- ListControlConvertEventArgs.cs
- MetadataException.cs
- WebPartExportVerb.cs
- DateTimeConverter.cs
- NGCSerializer.cs
- TrustLevelCollection.cs
- StandardOleMarshalObject.cs
- SingleConverter.cs
- ValueQuery.cs