Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / BlockUIContainer.cs / 1 / BlockUIContainer.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: BlockUIContainer - a wrapper for embedded UIElements in text // flow content block collections // //--------------------------------------------------------------------------- using System.ComponentModel; // DesignerSerializationVisibility using System.Windows.Markup; // ContentProperty namespace System.Windows.Documents { ////// BlockUIContainer - a wrapper for embedded UIElements in text /// flow content block collections /// [ContentProperty("Child")] public class BlockUIContainer : Block { //------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------- #region Constructors ////// Initializes a new instance of BlockUIContainer element. /// ////// The purpose of this element is to be a wrapper for UIElements /// when they are embedded into text flow - as items of /// BlockCollections. /// public BlockUIContainer() : base() { } ////// Initializes an BlockUIContainer specifying its child UIElement /// /// /// UIElement set as a child of this block item /// public BlockUIContainer(UIElement uiElement) : base() { if (uiElement == null) { throw new ArgumentNullException("uiElement"); } this.Child = uiElement; } #endregion Constructors //-------------------------------------------------------------------- // // Public Properties // //------------------------------------------------------------------- #region Properties ////// The content spanned by this TextElement. /// public UIElement Child { get { return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; } set { TextContainer textContainer = this.TextContainer; textContainer.BeginChange(); try { TextPointer contentStart = this.ContentStart; UIElement child = Child; if (child != null) { textContainer.DeleteContentInternal(contentStart, this.ContentEnd); ContainerTextElementField.ClearValue(child); } if (value != null) { ContainerTextElementField.SetValue(value, this); contentStart.InsertUIElement(value); } } finally { textContainer.EndChange(); } } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeometryGroup.cs
- AssemblyBuilder.cs
- PopupRoot.cs
- NativeMethods.cs
- ProxyWebPart.cs
- ReadContentAsBinaryHelper.cs
- RuleValidation.cs
- dataSvcMapFileLoader.cs
- GreaterThan.cs
- PersonalizablePropertyEntry.cs
- CodeTypeOfExpression.cs
- SamlAuthorizationDecisionStatement.cs
- CollectionViewGroupInternal.cs
- WinFormsSpinner.cs
- GridViewEditEventArgs.cs
- ConsumerConnectionPoint.cs
- baseaxisquery.cs
- XsltLoader.cs
- LogLogRecordHeader.cs
- PackageRelationshipCollection.cs
- WindowsClientCredential.cs
- ScriptingSectionGroup.cs
- DesignerDataRelationship.cs
- SpellerStatusTable.cs
- FamilyTypeface.cs
- LabelAutomationPeer.cs
- HttpValueCollection.cs
- StringUtil.cs
- BrowserCapabilitiesCompiler.cs
- ColorKeyFrameCollection.cs
- PointConverter.cs
- XPathNavigatorReader.cs
- HtmlSelect.cs
- PolyLineSegment.cs
- SqlUtil.cs
- Validator.cs
- IssuanceLicense.cs
- WindowsListViewItemStartMenu.cs
- MethodInfo.cs
- SchemaReference.cs
- SystemSounds.cs
- SHA1Managed.cs
- WaitHandle.cs
- DbParameterCollection.cs
- wgx_sdk_version.cs
- WebPartMenuStyle.cs
- GlyphInfoList.cs
- Atom10FormatterFactory.cs
- ConfigXmlComment.cs
- CodeMemberProperty.cs
- NativeObjectSecurity.cs
- OpCellTreeNode.cs
- SynchronousReceiveElement.cs
- DbDataRecord.cs
- CultureInfoConverter.cs
- XmlLangPropertyAttribute.cs
- LocalizableResourceBuilder.cs
- XmlElementCollection.cs
- SocketInformation.cs
- Vertex.cs
- OledbConnectionStringbuilder.cs
- _SslStream.cs
- SiteMap.cs
- XmlTextWriter.cs
- Internal.cs
- ParserOptions.cs
- CodeGeneratorAttribute.cs
- SocketManager.cs
- CharacterString.cs
- FilterElement.cs
- InternalRelationshipCollection.cs
- KeyEvent.cs
- XmlBoundElement.cs
- MergeFailedEvent.cs
- RequestBringIntoViewEventArgs.cs
- PieceDirectory.cs
- Stylesheet.cs
- DataSource.cs
- WebAdminConfigurationHelper.cs
- SqlNodeAnnotations.cs
- SafeCoTaskMem.cs
- DeclaredTypeElementCollection.cs
- UInt64Converter.cs
- LogExtentCollection.cs
- SchemeSettingElementCollection.cs
- HtmlControl.cs
- ConnectionManagementSection.cs
- FormattedText.cs
- RoleGroupCollection.cs
- CompositeControl.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- NamespaceEmitter.cs
- Msec.cs
- LocatorBase.cs
- RegistryConfigurationProvider.cs
- RectangleConverter.cs
- AttributeSetAction.cs
- ReceiveMessageContent.cs
- SectionVisual.cs
- DebugController.cs