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
- UserControlBuildProvider.cs
- AppDomainShutdownMonitor.cs
- WmlLiteralTextAdapter.cs
- ContentWrapperAttribute.cs
- PerformanceCounterLib.cs
- XamlFilter.cs
- Evaluator.cs
- DisableDpiAwarenessAttribute.cs
- _PooledStream.cs
- FixedDocumentPaginator.cs
- ProbeMatchesApril2005.cs
- TypeConstant.cs
- InfoCardTrace.cs
- ToolStripItemClickedEventArgs.cs
- SQLChars.cs
- HttpCookiesSection.cs
- SharedUtils.cs
- GradientPanel.cs
- StateBag.cs
- LogManagementAsyncResult.cs
- FloaterParagraph.cs
- UrlPath.cs
- MinimizableAttributeTypeConverter.cs
- UIElementHelper.cs
- OutputWindow.cs
- Endpoint.cs
- CacheOutputQuery.cs
- ExclusiveCanonicalizationTransform.cs
- DataGridViewCellStyleConverter.cs
- QueryExpr.cs
- MobileControlsSectionHelper.cs
- SiteMapNodeItemEventArgs.cs
- MailMessageEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- SyndicationFeed.cs
- ToggleButtonAutomationPeer.cs
- AppSettingsSection.cs
- ActivityDesignerLayoutSerializers.cs
- HttpCacheVaryByContentEncodings.cs
- XmlUrlResolver.cs
- DataGridViewRowConverter.cs
- ListMarkerSourceInfo.cs
- SqlTriggerContext.cs
- DataIdProcessor.cs
- DbgUtil.cs
- TimeSpan.cs
- WebScriptClientGenerator.cs
- SmtpReplyReaderFactory.cs
- WindowsClaimSet.cs
- IndentTextWriter.cs
- SingleResultAttribute.cs
- WinEventWrap.cs
- WorkflowStateRollbackService.cs
- UnsafeNativeMethods.cs
- WebPartEditorApplyVerb.cs
- WasAdminWrapper.cs
- RegularExpressionValidator.cs
- EnterpriseServicesHelper.cs
- Script.cs
- SafeNativeMethodsCLR.cs
- SafeCertificateContext.cs
- RemotingException.cs
- SamlEvidence.cs
- SqlInternalConnection.cs
- LayoutUtils.cs
- EventTrigger.cs
- RawStylusActions.cs
- LinkButton.cs
- GridToolTip.cs
- EditingCoordinator.cs
- NavigationPropertyEmitter.cs
- Signature.cs
- PointConverter.cs
- ControlFilterExpression.cs
- TypeSystem.cs
- TypeForwardedToAttribute.cs
- RepeaterItemCollection.cs
- OutOfMemoryException.cs
- WindowsBrush.cs
- FatalException.cs
- PersistenceContext.cs
- StatusBar.cs
- JsonDataContract.cs
- ExecutorLocksHeldException.cs
- MultipartContentParser.cs
- EllipticalNodeOperations.cs
- SqlDataSourceTableQuery.cs
- ProfileProvider.cs
- ApplicationDirectoryMembershipCondition.cs
- DataGridViewDataConnection.cs
- ReturnValue.cs
- HtmlInputHidden.cs
- ApplicationSecurityInfo.cs
- AmbientLight.cs
- TemplateContentLoader.cs
- RenderContext.cs
- AnyAllSearchOperator.cs
- LoginCancelEventArgs.cs
- Repeater.cs
- XmlEntity.cs