Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / XmlDesigner.cs / 1 / XmlDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System; using System.Design; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Diagnostics; using System.Web.UI.Design; using System.Web.UI.WebControls; ////// /// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class XmlDesigner : ControlDesigner { private Xml xml; ////// Provides a designer for the ///control. /// /// /// public XmlDesigner() { } ////// Initializes a new instance of the ///class. /// /// /// Performs the cleanup of the designer class. /// protected override void Dispose(bool disposing) { if (disposing) { xml = null; } base.Dispose(disposing); } ////// /// Retrieves the HTML to be used for the design time representation /// of the control. /// public override string GetDesignTimeHtml() { return GetEmptyDesignTimeHtml(); } ////// /// protected override string GetEmptyDesignTimeHtml() { return CreatePlaceHolderDesignTimeHtml(SR.GetString(SR.Xml_Inst)); } ////// /// Initializes the designer with the Repeater control that this instance /// of the designer is associated with. /// public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(Xml)); xml = (Xml)component; base.Initialize(component); } ///internal override string GetPersistInnerHtmlInternal() { Xml xmlControl = (Xml)Component; string originalContent = (string)((IControlDesignerAccessor)xmlControl).GetDesignModeState()["OriginalContent"]; if (originalContent != null) { return originalContent; } return xmlControl.DocumentContent; } } } // 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
- BamlVersionHeader.cs
- TemplateContent.cs
- PrintSystemException.cs
- SslStream.cs
- GeneratedContractType.cs
- sqlser.cs
- BitmapEffectDrawing.cs
- ReturnType.cs
- ModulesEntry.cs
- TextServicesLoader.cs
- DataTemplateKey.cs
- StrongNameIdentityPermission.cs
- Rule.cs
- RetriableClipboard.cs
- XmlILIndex.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CellTreeSimplifier.cs
- Encoder.cs
- WebPartsPersonalizationAuthorization.cs
- EntityDataSourceUtil.cs
- TextOptions.cs
- ColumnWidthChangingEvent.cs
- FtpWebResponse.cs
- QilChoice.cs
- FloaterBaseParaClient.cs
- DrawingVisual.cs
- SoapExtensionReflector.cs
- AsyncOperation.cs
- HtmlTableRowCollection.cs
- FontDifferentiator.cs
- SmtpLoginAuthenticationModule.cs
- IIS7UserPrincipal.cs
- RadioButtonList.cs
- BinaryParser.cs
- WebPartRestoreVerb.cs
- ClientRolePrincipal.cs
- HtmlInputHidden.cs
- StyleSelector.cs
- BuildProviderInstallComponent.cs
- _NTAuthentication.cs
- File.cs
- Psha1DerivedKeyGenerator.cs
- OperationFormatUse.cs
- ContentPlaceHolderDesigner.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- TableLayoutSettingsTypeConverter.cs
- SessionStateUtil.cs
- ListViewItem.cs
- SignatureResourcePool.cs
- RightNameExpirationInfoPair.cs
- PagedDataSource.cs
- ReverseInheritProperty.cs
- ListBox.cs
- Version.cs
- MemoryMappedView.cs
- TextEffectResolver.cs
- DefaultBinder.cs
- VSWCFServiceContractGenerator.cs
- SatelliteContractVersionAttribute.cs
- ClientTargetSection.cs
- BezierSegment.cs
- WorkflowOperationErrorHandler.cs
- DataSysAttribute.cs
- QueryAccessibilityHelpEvent.cs
- PerformanceCounterPermissionAttribute.cs
- SubMenuStyleCollection.cs
- Pkcs7Signer.cs
- HashAlgorithm.cs
- EventData.cs
- DateTimeParse.cs
- ServicePoint.cs
- TableLayoutRowStyleCollection.cs
- Filter.cs
- TextTreeRootNode.cs
- ActiveXSite.cs
- Unit.cs
- Funcletizer.cs
- CharacterString.cs
- ToolStripDropDownMenu.cs
- LoadRetryStrategyFactory.cs
- VersionPair.cs
- DrawingAttributes.cs
- QuaternionRotation3D.cs
- StringConverter.cs
- ComplexObject.cs
- TabControl.cs
- TextRangeSerialization.cs
- Bind.cs
- PriorityChain.cs
- ImageFormat.cs
- WebBaseEventKeyComparer.cs
- AlignmentYValidation.cs
- PrintPreviewDialog.cs
- OleDragDropHandler.cs
- XmlSerializationWriter.cs
- InteropBitmapSource.cs
- ForeignConstraint.cs
- FileReservationCollection.cs
- HtmlControl.cs
- PositiveTimeSpanValidatorAttribute.cs