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
- SolidColorBrush.cs
- WCFServiceClientProxyGenerator.cs
- Operators.cs
- Win32SafeHandles.cs
- GenericTextProperties.cs
- DefaultValueAttribute.cs
- CalendarBlackoutDatesCollection.cs
- SamlNameIdentifierClaimResource.cs
- SamlAction.cs
- WindowsTokenRoleProvider.cs
- XmlSchemaInclude.cs
- DbMetaDataCollectionNames.cs
- WebPartChrome.cs
- UrlPropertyAttribute.cs
- FixedDocumentPaginator.cs
- Color.cs
- DiffuseMaterial.cs
- ProtocolsConfigurationEntry.cs
- InputBinding.cs
- CachedCompositeFamily.cs
- RelationalExpressions.cs
- MenuAdapter.cs
- IdnElement.cs
- DataControlFieldCell.cs
- AddInStore.cs
- VirtualPath.cs
- BinHexEncoder.cs
- CapabilitiesRule.cs
- TextAction.cs
- Tablet.cs
- ClientBuildManagerCallback.cs
- StringUtil.cs
- NativeMethods.cs
- _ConnectionGroup.cs
- SamlConstants.cs
- PageParser.cs
- DataKey.cs
- CustomSignedXml.cs
- NativeActivityAbortContext.cs
- IApplicationTrustManager.cs
- TreeViewTemplateSelector.cs
- ClientRuntimeConfig.cs
- EntityContainerAssociationSetEnd.cs
- ConfigXmlWhitespace.cs
- ImageIndexEditor.cs
- __Filters.cs
- GridViewDeletedEventArgs.cs
- WmpBitmapDecoder.cs
- ObjectDisposedException.cs
- BrowserCapabilitiesFactory.cs
- DataGridViewSortCompareEventArgs.cs
- ExitEventArgs.cs
- ISAPIRuntime.cs
- ClientScriptItem.cs
- TableNameAttribute.cs
- XDeferredAxisSource.cs
- ComAdminWrapper.cs
- ConsumerConnectionPoint.cs
- ContainerAction.cs
- CellIdBoolean.cs
- Script.cs
- ReturnType.cs
- DataGridViewCellMouseEventArgs.cs
- InputScope.cs
- DictionaryTraceRecord.cs
- TextOptions.cs
- EventRoute.cs
- InplaceBitmapMetadataWriter.cs
- SQLDouble.cs
- SByteStorage.cs
- Types.cs
- DropShadowBitmapEffect.cs
- ValueTypeFixupInfo.cs
- SqlClientWrapperSmiStreamChars.cs
- PkcsMisc.cs
- RawStylusActions.cs
- ArrangedElement.cs
- MsmqIntegrationProcessProtocolHandler.cs
- SqlGenericUtil.cs
- BulletDecorator.cs
- MaskedTextBox.cs
- PasswordDeriveBytes.cs
- XmlSerializerFactory.cs
- PersonalizationAdministration.cs
- RequestDescription.cs
- Util.cs
- X509ThumbprintKeyIdentifierClause.cs
- ClientRuntimeConfig.cs
- WebPartConnectionsConfigureVerb.cs
- ResourceIDHelper.cs
- XmlIlVisitor.cs
- SocketPermission.cs
- EmptyElement.cs
- Executor.cs
- InternalBufferOverflowException.cs
- OciLobLocator.cs
- NativeWindow.cs
- PropertyInformationCollection.cs
- CallbackException.cs
- _NetworkingPerfCounters.cs