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
- PositiveTimeSpanValidator.cs
- RijndaelManaged.cs
- TcpClientChannel.cs
- basecomparevalidator.cs
- SByteConverter.cs
- CqlParserHelpers.cs
- SortedDictionary.cs
- ProfileService.cs
- SplashScreen.cs
- TextBox.cs
- RIPEMD160Managed.cs
- MenuEventArgs.cs
- SchemaDeclBase.cs
- HttpWrapper.cs
- DrawingGroup.cs
- SafeNativeMethods.cs
- DataGridPagerStyle.cs
- RelationalExpressions.cs
- AsynchronousChannel.cs
- Latin1Encoding.cs
- XmlSiteMapProvider.cs
- ClientType.cs
- SplineKeyFrames.cs
- UniqueIdentifierService.cs
- AutomationPatternInfo.cs
- ConfigsHelper.cs
- SemaphoreFullException.cs
- RequiredFieldValidator.cs
- OperationDescriptionCollection.cs
- CloseCollectionAsyncResult.cs
- CodeAttributeArgument.cs
- MarkupExtensionParser.cs
- StaticExtension.cs
- HandledMouseEvent.cs
- InvalidDataContractException.cs
- WindowHideOrCloseTracker.cs
- BitmapPalette.cs
- RichTextBox.cs
- QueueProcessor.cs
- WorkflowStateRollbackService.cs
- followingquery.cs
- ValidationSummary.cs
- safesecurityhelperavalon.cs
- ManagedCodeMarkers.cs
- GPRECTF.cs
- DoubleCollectionValueSerializer.cs
- ExpressionConverter.cs
- Adorner.cs
- ConfigurationPermission.cs
- EmptyStringExpandableObjectConverter.cs
- PathGeometry.cs
- ToolStripManager.cs
- LinqDataSourceStatusEventArgs.cs
- ScalarOps.cs
- SharedUtils.cs
- FixedSOMPageConstructor.cs
- HtmlImage.cs
- BindingsCollection.cs
- SqlError.cs
- _CacheStreams.cs
- TreeChangeInfo.cs
- ClientConfigurationSystem.cs
- ApplicationProxyInternal.cs
- IndexedString.cs
- ApplicationGesture.cs
- AsymmetricSignatureFormatter.cs
- WinInetCache.cs
- SimpleRecyclingCache.cs
- ToolCreatedEventArgs.cs
- ConstrainedDataObject.cs
- SecurityRuntime.cs
- SourceSwitch.cs
- ApplicationServicesHostFactory.cs
- ReceiveSecurityHeaderEntry.cs
- ZipQueryOperator.cs
- Pen.cs
- WebScriptClientGenerator.cs
- HandlerWithFactory.cs
- CodeSnippetTypeMember.cs
- SingleResultAttribute.cs
- XomlCompilerResults.cs
- SignedXml.cs
- WebConfigurationHost.cs
- ParseChildrenAsPropertiesAttribute.cs
- RenderOptions.cs
- ListViewDeletedEventArgs.cs
- SafeFindHandle.cs
- BamlResourceSerializer.cs
- TracedNativeMethods.cs
- Span.cs
- TimeoutValidationAttribute.cs
- ParseNumbers.cs
- MdImport.cs
- BoolExpr.cs
- AutomationElement.cs
- DataGridViewCellMouseEventArgs.cs
- Pair.cs
- StylusPlugInCollection.cs
- TreeNodeClickEventArgs.cs
- TextEncodedRawTextWriter.cs