Code:
/ DotNET / DotNET / 8.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
- ReaderWriterLock.cs
- ProbeDuplex11AsyncResult.cs
- XmlLanguage.cs
- BindingsCollection.cs
- Section.cs
- OleDbErrorCollection.cs
- ContentPlaceHolder.cs
- SecUtil.cs
- DataGridItemAttachedStorage.cs
- SafeNativeMethods.cs
- TrackingMemoryStream.cs
- XmlParser.cs
- HandleInitializationContext.cs
- DummyDataSource.cs
- Profiler.cs
- BitmapScalingModeValidation.cs
- SingleTagSectionHandler.cs
- DataGridHelper.cs
- SecurityManager.cs
- TypeInfo.cs
- CommandHelper.cs
- BuildProviderCollection.cs
- SqlDataSourceConfigureSortForm.cs
- QuaternionRotation3D.cs
- ResXResourceReader.cs
- DrawingAttributeSerializer.cs
- HttpCapabilitiesSectionHandler.cs
- HwndMouseInputProvider.cs
- TextSchema.cs
- HttpClientCredentialType.cs
- MeshGeometry3D.cs
- RandomNumberGenerator.cs
- RelatedPropertyManager.cs
- DetailsViewPageEventArgs.cs
- HttpClientCertificate.cs
- XamlSerializationHelper.cs
- MetafileHeader.cs
- DrawingDrawingContext.cs
- GridToolTip.cs
- SiteMapDataSource.cs
- DispatchChannelSink.cs
- __ConsoleStream.cs
- GridToolTip.cs
- DetailsViewActionList.cs
- CollectionDataContract.cs
- HtmlInputSubmit.cs
- ScaleTransform3D.cs
- ClientFormsIdentity.cs
- ZipIOLocalFileHeader.cs
- GraphicsContext.cs
- ScrollViewer.cs
- TextBlock.cs
- SelectionGlyph.cs
- BinHexEncoding.cs
- CompilationLock.cs
- DbParameterCollectionHelper.cs
- BindingNavigator.cs
- SharedUtils.cs
- XmlSiteMapProvider.cs
- StrokeCollectionConverter.cs
- DataSourceControl.cs
- ObjectTypeMapping.cs
- KeyMatchBuilder.cs
- VectorConverter.cs
- DocumentCollection.cs
- SelectorAutomationPeer.cs
- XmlQueryRuntime.cs
- OracleDateTime.cs
- SignatureGenerator.cs
- FactoryMaker.cs
- UriWriter.cs
- PrintPreviewDialog.cs
- LinqToSqlWrapper.cs
- DefaultPrintController.cs
- FixedFlowMap.cs
- DataListItemCollection.cs
- TextTreeTextNode.cs
- basemetadatamappingvisitor.cs
- PageTrueTypeFont.cs
- NameTable.cs
- Pen.cs
- InfoCardXmlSerializer.cs
- ReferenceConverter.cs
- XmlReflectionImporter.cs
- TemplateControl.cs
- CellLabel.cs
- StaticTextPointer.cs
- DbConnectionOptions.cs
- ObjRef.cs
- AccessDataSourceView.cs
- DataGridCellsPanel.cs
- GetReadStreamResult.cs
- Scalars.cs
- ObjectStateFormatter.cs
- ToggleButton.cs
- Soap12ProtocolImporter.cs
- IntSecurity.cs
- PreservationFileReader.cs
- TextCompositionManager.cs
- DataGridViewRowsAddedEventArgs.cs