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
- Encoder.cs
- OrderedDictionaryStateHelper.cs
- FormViewRow.cs
- IODescriptionAttribute.cs
- Variant.cs
- GridViewSortEventArgs.cs
- ListViewItem.cs
- Item.cs
- OptimalBreakSession.cs
- XdrBuilder.cs
- WindowsFormsSectionHandler.cs
- ScopelessEnumAttribute.cs
- Oid.cs
- StringFreezingAttribute.cs
- ServiceControllerDesigner.cs
- SerializationFieldInfo.cs
- WindowsFormsLinkLabel.cs
- ScopedKnownTypes.cs
- MetadataCache.cs
- EdmToObjectNamespaceMap.cs
- BevelBitmapEffect.cs
- TypeNameConverter.cs
- CapabilitiesRule.cs
- CharKeyFrameCollection.cs
- PersistenceContextEnlistment.cs
- Exceptions.cs
- DrawingBrush.cs
- ToolStripPanelCell.cs
- TextTreeRootNode.cs
- JulianCalendar.cs
- SortFieldComparer.cs
- AnimationStorage.cs
- UnsafeNativeMethods.cs
- AsyncPostBackTrigger.cs
- RowType.cs
- VariableAction.cs
- URLIdentityPermission.cs
- SoapAttributeAttribute.cs
- activationcontext.cs
- List.cs
- CompilationUnit.cs
- DataGridBoundColumn.cs
- FloaterBaseParagraph.cs
- GenericPrincipal.cs
- Registry.cs
- XmlLanguage.cs
- mactripleDES.cs
- LinkedResourceCollection.cs
- mongolianshape.cs
- diagnosticsswitches.cs
- SmtpReplyReader.cs
- DbgUtil.cs
- TransformedBitmap.cs
- TextElementEditingBehaviorAttribute.cs
- XmlElementAttributes.cs
- DrawingGroup.cs
- securitycriticaldata.cs
- CommandBinding.cs
- SingleAnimation.cs
- ContextQuery.cs
- SafeRightsManagementSessionHandle.cs
- TypeEnumerableViewSchema.cs
- DataObjectMethodAttribute.cs
- Pair.cs
- XdrBuilder.cs
- GeneralTransformGroup.cs
- XmlDocumentFragment.cs
- TraceSwitch.cs
- ResourceAttributes.cs
- Peer.cs
- AmbientLight.cs
- SimpleHandlerBuildProvider.cs
- InProcStateClientManager.cs
- SQLCharsStorage.cs
- graph.cs
- MobileControlPersister.cs
- FrameworkContentElement.cs
- ActivityXRefConverter.cs
- Socket.cs
- PenLineCapValidation.cs
- GenericUriParser.cs
- PerfService.cs
- CombinedGeometry.cs
- CodePrimitiveExpression.cs
- ActionItem.cs
- SemaphoreSecurity.cs
- UriParserTemplates.cs
- ObjectSpanRewriter.cs
- GrowingArray.cs
- ByteStack.cs
- OverflowException.cs
- DataBindingsDialog.cs
- BufferModeSettings.cs
- MetaChildrenColumn.cs
- HtmlLink.cs
- Accessible.cs
- _AutoWebProxyScriptHelper.cs
- SigningDialog.cs
- BCryptNative.cs
- AuthorizationContext.cs