Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebParts / ConnectionsZoneAutoFormat.cs / 1 / ConnectionsZoneAutoFormat.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.Design.WebControls.WebParts {
using System.Data;
using System.Design;
using System.Web.UI.WebControls.WebParts;
internal sealed class ConnectionsZoneAutoFormat : BaseAutoFormat {
internal const string PreviewControlID = "AutoFormatPreviewControl";
public ConnectionsZoneAutoFormat(DataRow schemeData) : base(schemeData) {
// Use default height
Style.Width = 225;
}
public override Control GetPreviewControl(Control runtimeControl) {
ConnectionsZone previewZone = (ConnectionsZone)base.GetPreviewControl(runtimeControl);
// Set the ID of the zone to the special PreviewControlID, so the ConnectionsZoneDesigner
// doesn't render the placeholder for this control in the AutoFormat dialog, regardless
// of whether ViewInEditMode is true.
previewZone.ID = PreviewControlID;
return previewZone;
}
}
}
// 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
- EventLogInformation.cs
- XmlAttributes.cs
- PartialCachingControl.cs
- XmlByteStreamReader.cs
- CodePrimitiveExpression.cs
- EnumerableCollectionView.cs
- ListViewDeletedEventArgs.cs
- TextParagraph.cs
- SQLGuidStorage.cs
- DoubleLinkList.cs
- WebConfigManager.cs
- SemanticResultKey.cs
- PersianCalendar.cs
- TextFormatterHost.cs
- HttpGetProtocolReflector.cs
- WindowsStatusBar.cs
- SharedStatics.cs
- AccessibilityHelperForXpWin2k3.cs
- ArcSegment.cs
- DataTableMapping.cs
- CorrelationScope.cs
- CompilerGlobalScopeAttribute.cs
- ILGen.cs
- ConnectionPointCookie.cs
- datacache.cs
- OracleConnection.cs
- InternalConfigEventArgs.cs
- ChannelDispatcherCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- FocusTracker.cs
- DateTimeStorage.cs
- DataGridTextBox.cs
- TdsParserStaticMethods.cs
- AspNetSynchronizationContext.cs
- BulletedList.cs
- ConfigurationStrings.cs
- ErrorHandlerModule.cs
- FeatureSupport.cs
- PerfService.cs
- PrintPageEvent.cs
- LineUtil.cs
- BitmapEffectDrawingContextWalker.cs
- InProcStateClientManager.cs
- Globals.cs
- ColorTransform.cs
- ObjectDataSourceView.cs
- ResourcesGenerator.cs
- TemplateManager.cs
- XmlEntityReference.cs
- XmlChoiceIdentifierAttribute.cs
- LinearKeyFrames.cs
- TypeInitializationException.cs
- PrivilegedConfigurationManager.cs
- Animatable.cs
- PipelineModuleStepContainer.cs
- TargetControlTypeAttribute.cs
- ContentValidator.cs
- HwndSourceParameters.cs
- Propagator.cs
- Geometry3D.cs
- RootProjectionNode.cs
- PageMediaSize.cs
- MsmqIntegrationChannelFactory.cs
- HMAC.cs
- TextCompositionManager.cs
- ToolStripStatusLabel.cs
- FixedPageProcessor.cs
- UnmanagedMemoryStream.cs
- ButtonBase.cs
- Pen.cs
- CompiledELinqQueryState.cs
- CellQuery.cs
- ConfigXmlSignificantWhitespace.cs
- OracleConnectionStringBuilder.cs
- HwndProxyElementProvider.cs
- CodeDirectoryCompiler.cs
- GridLengthConverter.cs
- PreviewPageInfo.cs
- MailWebEventProvider.cs
- SignatureDescription.cs
- AssemblyEvidenceFactory.cs
- Propagator.ExtentPlaceholderCreator.cs
- GestureRecognizer.cs
- ChangePassword.cs
- DurableServiceAttribute.cs
- Evaluator.cs
- MenuItemBinding.cs
- DataSourceControlBuilder.cs
- SystemKeyConverter.cs
- IntegrationExceptionEventArgs.cs
- Opcode.cs
- PassportIdentity.cs
- TitleStyle.cs
- PermissionSet.cs
- LayoutDump.cs
- EmbeddedMailObject.cs
- ControlPropertyNameConverter.cs
- ZipIOBlockManager.cs
- TreeNodeStyleCollection.cs
- X509SecurityToken.cs