Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / FlowDocumentPageViewerAutomationPeer.cs / 1 / FlowDocumentPageViewerAutomationPeer.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: FlowDocumentPageViewerAutomationPeer.cs // // Description: AutomationPeer associated with FlowDocumentPageViewer. // //--------------------------------------------------------------------------- using System.Collections.Generic; // Listusing System.Windows.Controls; // FlowDocumentPageViewer using MS.Internal.Documents; // IFlowDocumentView namespace System.Windows.Automation.Peers { /// /// AutomationPeer associated with FlowDocumentPageViewer. /// public class FlowDocumentPageViewerAutomationPeer : DocumentViewerBaseAutomationPeer { ////// Constructor. /// /// Owner of the AutomationPeer. public FlowDocumentPageViewerAutomationPeer(FlowDocumentPageViewer owner) : base(owner) { } ////// ////// /// AutomationPeer associated with DocumentViewerBase returns an AutomationPeer /// for hosted Document and for elements in the style. /// protected override ListGetChildrenCore() { // Get children for all elements in the style. List children = base.GetChildrenCore(); // If the owner is IFlowDocumentViewer, it means that it is embedded inside // FlowDocumentReaer. In this case DocumentAutumationPeer is already exposed. // Hence need to remove it from children collection. if (Owner is IFlowDocumentViewer && children != null && children.Count > 0) { if (children[children.Count-1] is DocumentAutomationPeer) { children.RemoveAt(children.Count - 1); if (children.Count == 0) { children = null; } } } return children; } /// /// protected override string GetClassNameCore() { return "FlowDocumentPageViewer"; } } } // 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
- Avt.cs
- NetMsmqBinding.cs
- EventListenerClientSide.cs
- DataServiceQueryContinuation.cs
- SetterBaseCollection.cs
- Calendar.cs
- Int16Converter.cs
- ScheduleChanges.cs
- compensatingcollection.cs
- SupportingTokenParameters.cs
- InvalidProgramException.cs
- InfiniteTimeSpanConverter.cs
- RequestTimeoutManager.cs
- XmlEventCache.cs
- _LoggingObject.cs
- XMLDiffLoader.cs
- CustomAttribute.cs
- ProfileServiceManager.cs
- MenuItemAutomationPeer.cs
- ListBoxItemAutomationPeer.cs
- TdsEnums.cs
- CheckBoxAutomationPeer.cs
- DivideByZeroException.cs
- UnionExpr.cs
- DateTimeFormat.cs
- XmlUtilWriter.cs
- TimerExtension.cs
- CheckedListBox.cs
- ProviderSettingsCollection.cs
- WebColorConverter.cs
- RelatedImageListAttribute.cs
- HotSpotCollection.cs
- HttpRuntimeSection.cs
- CombinedHttpChannel.cs
- PathGeometry.cs
- BindingList.cs
- Oci.cs
- Int32Animation.cs
- DoubleKeyFrameCollection.cs
- ActivityMarkupSerializer.cs
- ImageAnimator.cs
- HostProtectionPermission.cs
- DataIdProcessor.cs
- Point3D.cs
- ReferencedAssemblyResolver.cs
- WebPartDescription.cs
- ColorContextHelper.cs
- OptimisticConcurrencyException.cs
- LogManagementAsyncResult.cs
- WebPartDescription.cs
- ConstrainedGroup.cs
- TreeViewTemplateSelector.cs
- CFStream.cs
- Misc.cs
- TextServicesCompartment.cs
- ReachPageContentCollectionSerializerAsync.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ConfigXmlText.cs
- Transform3DGroup.cs
- Highlights.cs
- MemberInfoSerializationHolder.cs
- FormsAuthenticationUserCollection.cs
- SelectedGridItemChangedEvent.cs
- WebPartZoneBase.cs
- NotifyInputEventArgs.cs
- XmlDictionaryString.cs
- BoolExpression.cs
- GenericAuthenticationEventArgs.cs
- PropertyDescriptor.cs
- DateTimeValueSerializer.cs
- GraphicsState.cs
- XmlWriterTraceListener.cs
- WorkflowRuntime.cs
- DesignerOptionService.cs
- WinFormsSecurity.cs
- ListControl.cs
- DataGridViewAdvancedBorderStyle.cs
- ExpressionPrinter.cs
- WpfSharedXamlSchemaContext.cs
- SqlTypeSystemProvider.cs
- CompensateDesigner.cs
- COSERVERINFO.cs
- Pipe.cs
- SymbolDocumentInfo.cs
- NestedContainer.cs
- EntityContainerEntitySetDefiningQuery.cs
- GatewayDefinition.cs
- TextDecorationUnitValidation.cs
- XmlnsPrefixAttribute.cs
- LowerCaseStringConverter.cs
- ETagAttribute.cs
- MappingModelBuildProvider.cs
- ADConnectionHelper.cs
- ExtendedPropertyCollection.cs
- LinqDataSource.cs
- PrePrepareMethodAttribute.cs
- SerialPinChanges.cs
- WebPartMenuStyle.cs
- RuleProcessor.cs
- GlobalAllocSafeHandle.cs