Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / TextBlockAutomationPeer.cs / 1 / TextBlockAutomationPeer.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: TextBlockAutomationPeer.cs // // Description: AutomationPeer associated with TextBlock. // //--------------------------------------------------------------------------- using System.Collections.Generic; // Listusing System.Windows.Controls; // TextBlock using System.Windows.Documents; // ITextContainer using MS.Internal.Documents; // TextContainerHelper namespace System.Windows.Automation.Peers { /// /// AutomationPeer associated with TextBlock. /// public class TextBlockAutomationPeer : FrameworkElementAutomationPeer { ////// Constructor. /// /// Owner of the AutomationPeer. public TextBlockAutomationPeer(TextBlock owner) : base(owner) { } ////// protected override List/// GetChildrenCore() { List peers = null; TextBlock owner = (TextBlock)Owner; // TextBlock has children only if it has complex content. if (owner.HasComplexContent) { peers = TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); } return peers; } /// /// protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Text; } ////// /// ////// protected override string GetClassNameCore() { return "TextBlock"; } /// /// override protected bool IsControlElementCore() { // Return true if TextBlock is not part of the style return ((TextBlock)Owner).TemplatedParent == null; } } } // 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
- EtwTrace.cs
- Listen.cs
- LabelLiteral.cs
- ChangesetResponse.cs
- AlignmentXValidation.cs
- PerformanceCounterTraceRecord.cs
- MouseDevice.cs
- CoreChannel.cs
- StreamGeometryContext.cs
- WSTransactionSection.cs
- XmlSubtreeReader.cs
- DoubleAnimationBase.cs
- TypedTableBase.cs
- SapiInterop.cs
- SynchronizationContext.cs
- CorrelationKeyCalculator.cs
- FormViewModeEventArgs.cs
- HtmlInputHidden.cs
- ProviderUtil.cs
- Rect3D.cs
- BulletChrome.cs
- Column.cs
- SqlProvider.cs
- CompletedAsyncResult.cs
- XmlSchemaSimpleType.cs
- XamlWrappingReader.cs
- ServerValidateEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- ISCIIEncoding.cs
- Deflater.cs
- validation.cs
- CodeAttachEventStatement.cs
- MessageBox.cs
- FileUpload.cs
- PerformanceCounterCategory.cs
- XmlCharCheckingReader.cs
- Stylesheet.cs
- RectangleHotSpot.cs
- ViewEvent.cs
- HwndProxyElementProvider.cs
- ImageClickEventArgs.cs
- BooleanProjectedSlot.cs
- CreateInstanceBinder.cs
- FixedSOMContainer.cs
- CachedCompositeFamily.cs
- relpropertyhelper.cs
- ImageAutomationPeer.cs
- NumericPagerField.cs
- GlobalProxySelection.cs
- HttpHandlerAction.cs
- KeyboardDevice.cs
- ActionFrame.cs
- DataRelation.cs
- PublishLicense.cs
- TypedAsyncResult.cs
- UnSafeCharBuffer.cs
- DoubleAnimationUsingKeyFrames.cs
- BaseDataListActionList.cs
- AutoGeneratedField.cs
- PropertyKey.cs
- FileLevelControlBuilderAttribute.cs
- ArgumentNullException.cs
- DataGridViewButtonCell.cs
- XPathCompileException.cs
- Section.cs
- BufferAllocator.cs
- ClientTargetCollection.cs
- UIElementParagraph.cs
- ResourcePermissionBaseEntry.cs
- OracleCommandSet.cs
- ReferenceEqualityComparer.cs
- HierarchicalDataSourceConverter.cs
- TreeNodeSelectionProcessor.cs
- METAHEADER.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- BuiltInExpr.cs
- FrameworkTextComposition.cs
- CustomPeerResolverService.cs
- KeyNotFoundException.cs
- NavigationProperty.cs
- TraceHwndHost.cs
- MetadataItemCollectionFactory.cs
- RegexCode.cs
- ModulesEntry.cs
- XmlNodeReader.cs
- GacUtil.cs
- TriggerAction.cs
- TreeViewImageGenerator.cs
- ActivitySurrogateSelector.cs
- PluralizationServiceUtil.cs
- ScalarConstant.cs
- BitmapFrame.cs
- WindowsListViewGroupHelper.cs
- TableSectionStyle.cs
- CriticalFinalizerObject.cs
- TypeForwardedFromAttribute.cs
- WindowsGrip.cs
- ScrollProviderWrapper.cs
- GetKeyedHashRequest.cs
- MimeWriter.cs