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
- OracleConnectionFactory.cs
- DocumentSchemaValidator.cs
- Events.cs
- StringReader.cs
- DuplicateDetector.cs
- StructuredTypeInfo.cs
- WebBrowserNavigatingEventHandler.cs
- CodeAttributeDeclarationCollection.cs
- BookmarkScopeHandle.cs
- SafeWaitHandle.cs
- FixedDocumentSequencePaginator.cs
- ExpandedWrapper.cs
- InvalidPrinterException.cs
- TraceContext.cs
- HashSet.cs
- PointCollection.cs
- PointAnimationBase.cs
- PageBorderless.cs
- SimpleTypesSurrogate.cs
- TextEditorContextMenu.cs
- IndexedSelectQueryOperator.cs
- UITypeEditor.cs
- RuntimeConfigLKG.cs
- SchemaElementDecl.cs
- SharedStatics.cs
- EntityDataSourceMemberPath.cs
- AccessKeyManager.cs
- HtmlElementEventArgs.cs
- AllMembershipCondition.cs
- DataServiceQueryProvider.cs
- XmlHierarchicalDataSourceView.cs
- ReadOnlyDictionary.cs
- RenderTargetBitmap.cs
- OleDbDataReader.cs
- StatementContext.cs
- XamlWriter.cs
- ParameterModifier.cs
- DiagnosticTrace.cs
- LinkTarget.cs
- ExpressionVisitorHelpers.cs
- SignatureHelper.cs
- DataTableExtensions.cs
- RoutedEventConverter.cs
- InstanceData.cs
- SafeNativeMethods.cs
- ProxyWebPart.cs
- XmlSchemaSimpleTypeRestriction.cs
- ReadOnlyPermissionSet.cs
- ConfigurationCollectionAttribute.cs
- ForEachAction.cs
- FileDataSourceCache.cs
- WinCategoryAttribute.cs
- EmissiveMaterial.cs
- DataGridViewImageColumn.cs
- DropShadowEffect.cs
- StorageInfo.cs
- Wizard.cs
- NullToBooleanConverter.cs
- OptimalTextSource.cs
- Gdiplus.cs
- IgnoreFlushAndCloseStream.cs
- LinkConverter.cs
- AspProxy.cs
- MobileTextWriter.cs
- TypeConverterHelper.cs
- FontStretchConverter.cs
- TableColumnCollection.cs
- IxmlLineInfo.cs
- PropertyReference.cs
- BridgeDataReader.cs
- ServicePointManager.cs
- DomNameTable.cs
- Cursors.cs
- ListControlActionList.cs
- InputLanguageSource.cs
- WebPartDeleteVerb.cs
- CalendarTable.cs
- SpecialFolderEnumConverter.cs
- BitmapMetadata.cs
- SoapWriter.cs
- EmbeddedMailObjectCollectionEditor.cs
- SqlGatherProducedAliases.cs
- EdmFunctionAttribute.cs
- Range.cs
- SizeFConverter.cs
- CheckBox.cs
- ClosableStream.cs
- ScaleTransform.cs
- Light.cs
- DescriptionAttribute.cs
- TypeHelper.cs
- CommandBinding.cs
- _LocalDataStoreMgr.cs
- X500Name.cs
- BitmapEffectGeneralTransform.cs
- NamedPipeHostedTransportConfiguration.cs
- MemberMaps.cs
- Hashtable.cs
- BehaviorEditorPart.cs
- GroupQuery.cs