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
- returneventsaver.cs
- ResourcePool.cs
- SafePEFileHandle.cs
- ImportRequest.cs
- Cursor.cs
- ErrorRuntimeConfig.cs
- MimeMapping.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ParseNumbers.cs
- XamlReader.cs
- XmlSchemaCollection.cs
- DataKey.cs
- SqlUserDefinedAggregateAttribute.cs
- RTLAwareMessageBox.cs
- CursorConverter.cs
- ClockGroup.cs
- SchemaUtility.cs
- CodeAttachEventStatement.cs
- ResourceBinder.cs
- EmptyEnumerator.cs
- KeyEventArgs.cs
- ToolZone.cs
- AdornerLayer.cs
- CodeObjectCreateExpression.cs
- DataGridRowEventArgs.cs
- Color.cs
- DSASignatureFormatter.cs
- DynamicRouteExpression.cs
- DebuggerAttributes.cs
- NamedElement.cs
- UnsafeNativeMethods.cs
- CodeNamespace.cs
- SecurityContext.cs
- Vector3DCollectionConverter.cs
- XhtmlTextWriter.cs
- TCEAdapterGenerator.cs
- SpecularMaterial.cs
- WrappedReader.cs
- JournalEntryStack.cs
- ToolboxCategory.cs
- SpeakCompletedEventArgs.cs
- PenLineCapValidation.cs
- HWStack.cs
- XPathNodeList.cs
- FileDialogCustomPlaces.cs
- GridViewUpdateEventArgs.cs
- OuterGlowBitmapEffect.cs
- HttpWriter.cs
- PolyBezierSegmentFigureLogic.cs
- CoreChannel.cs
- ToolStripHighContrastRenderer.cs
- ResourceDescriptionAttribute.cs
- RootAction.cs
- DocumentAutomationPeer.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- XmlExpressionDumper.cs
- COM2ICategorizePropertiesHandler.cs
- HtmlLink.cs
- HtmlControlPersistable.cs
- RegexCapture.cs
- CommonRemoteMemoryBlock.cs
- XmlValidatingReaderImpl.cs
- OperationCanceledException.cs
- HMAC.cs
- TextServicesProperty.cs
- EmptyElement.cs
- MsmqChannelListenerBase.cs
- PolyQuadraticBezierSegment.cs
- ObjectView.cs
- ObjectDataSourceDisposingEventArgs.cs
- HideDisabledControlAdapter.cs
- AssertValidation.cs
- PropertyChangingEventArgs.cs
- RemotingConfigParser.cs
- SafeEventLogWriteHandle.cs
- Ipv6Element.cs
- DataGridViewCellStyle.cs
- LeafCellTreeNode.cs
- Constraint.cs
- RIPEMD160Managed.cs
- EntityDataSourceViewSchema.cs
- IndentedWriter.cs
- GeneralTransform3DGroup.cs
- Decimal.cs
- SHA1CryptoServiceProvider.cs
- TcpConnectionPool.cs
- _NativeSSPI.cs
- XPathMessageContext.cs
- NotificationContext.cs
- Event.cs
- metadatamappinghashervisitor.cs
- NegotiateStream.cs
- GridViewItemAutomationPeer.cs
- SocketManager.cs
- IncrementalHitTester.cs
- NetPeerTcpBinding.cs
- XXXOnTypeBuilderInstantiation.cs
- HtmlTextBoxAdapter.cs
- ApplicationSettingsBase.cs
- ToolStripStatusLabel.cs