Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / ContentOperations.cs / 1 / ContentOperations.cs
namespace System.Windows { ////// This interface defines the common methods and services available from a ContentElement. /// public static class ContentOperations { ////// Get the Visual parent of this ContentElement. /// public static DependencyObject GetParent(ContentElement reference) { if(reference == null) { throw new ArgumentNullException("reference"); } return reference._parent; } ////// Set the Visual parent of this ContentElement. /// ////// This is different than Visuals. For Visuals, you have to /// Add/Remove the visual from a children collection to change /// the parent. I think it is a better model, but I don't /// know if we want to expose a full children collection for /// content elements. /// public static void SetParent(ContentElement reference, DependencyObject parent) { if(reference == null) { throw new ArgumentNullException("reference"); } DependencyObject oldParent = reference._parent; reference._parent = parent; // Raise content parent changed notification reference.OnContentParentChanged(oldParent); } } } // 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
- PathParser.cs
- ArgumentException.cs
- WebServiceTypeData.cs
- HtmlInputFile.cs
- XmlWrappingReader.cs
- DataGridViewBand.cs
- IIS7WorkerRequest.cs
- SafeSecurityHelper.cs
- LowerCaseStringConverter.cs
- SrgsItemList.cs
- IProvider.cs
- SqlCachedBuffer.cs
- AsyncCompletedEventArgs.cs
- WebBrowserSiteBase.cs
- ComponentManagerBroker.cs
- BufferModeSettings.cs
- DataStreamFromComStream.cs
- LocalServiceSecuritySettings.cs
- TableItemProviderWrapper.cs
- SspiWrapper.cs
- BorderSidesEditor.cs
- XmlExpressionDumper.cs
- DataError.cs
- Itemizer.cs
- StringDictionaryEditor.cs
- AttributeProviderAttribute.cs
- NullReferenceException.cs
- ExpandedProjectionNode.cs
- SqlBulkCopy.cs
- SignerInfo.cs
- BuildProvider.cs
- InstanceDescriptor.cs
- DataBoundControl.cs
- ExpressionBindings.cs
- SubclassTypeValidatorAttribute.cs
- OdbcConnectionHandle.cs
- QilTernary.cs
- AbandonedMutexException.cs
- PtsPage.cs
- Themes.cs
- TemplateControlParser.cs
- CookieProtection.cs
- SmiSettersStream.cs
- EventLogPermissionEntry.cs
- SaveFileDialog.cs
- ToolStripSettings.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PriorityBindingExpression.cs
- BinaryFormatterWriter.cs
- UserNamePasswordValidationMode.cs
- RangeBaseAutomationPeer.cs
- CompositeControl.cs
- ColumnTypeConverter.cs
- FacetValues.cs
- ReflectionServiceProvider.cs
- NavigationWindow.cs
- ToolStripRenderEventArgs.cs
- MailHeaderInfo.cs
- XamlReaderHelper.cs
- DetailsViewCommandEventArgs.cs
- DeferredSelectedIndexReference.cs
- Int64AnimationBase.cs
- NameSpaceExtractor.cs
- EventMetadata.cs
- TextBlock.cs
- WebBrowserProgressChangedEventHandler.cs
- StringBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- DelegatedStream.cs
- WsdlContractConversionContext.cs
- SamlSerializer.cs
- NavigatorInput.cs
- ExpressionBuilder.cs
- TypeDelegator.cs
- DeclarativeConditionsCollection.cs
- TextEditorCharacters.cs
- XmlSchemaAnnotation.cs
- SoapRpcServiceAttribute.cs
- Point3D.cs
- ObservableDictionary.cs
- ConstraintEnumerator.cs
- AsymmetricKeyExchangeFormatter.cs
- FileLogRecordStream.cs
- WinInet.cs
- HttpFileCollection.cs
- PageAdapter.cs
- QueryOutputWriterV1.cs
- SectionVisual.cs
- IndicFontClient.cs
- OrderedDictionaryStateHelper.cs
- Fonts.cs
- EmbeddedObject.cs
- RuleRefElement.cs
- GroupQuery.cs
- EntitySqlQueryCacheKey.cs
- ZipIOExtraFieldZip64Element.cs
- SrgsOneOf.cs
- SymmetricAlgorithm.cs
- IPAddress.cs
- TextElementCollectionHelper.cs