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
- MimeWriter.cs
- WindowsListViewGroup.cs
- LinkClickEvent.cs
- ObjectDataSourceView.cs
- ErasingStroke.cs
- peersecurityelement.cs
- StreamReader.cs
- Debugger.cs
- LinqMaximalSubtreeNominator.cs
- FunctionQuery.cs
- UserInitiatedNavigationPermission.cs
- TextTrailingCharacterEllipsis.cs
- SQLDecimal.cs
- CodeSnippetStatement.cs
- SafeEventHandle.cs
- IBuiltInEvidence.cs
- SmiEventSink_Default.cs
- DataListItem.cs
- RequestTimeoutManager.cs
- CodeTypeDelegate.cs
- TimelineCollection.cs
- XmlTextReader.cs
- DataBindingCollection.cs
- XmlSchemaValidationException.cs
- WinFormsComponentEditor.cs
- ColorDialog.cs
- SqlMethodAttribute.cs
- SoapFault.cs
- Int32Animation.cs
- ShimAsPublicXamlType.cs
- XmlUnspecifiedAttribute.cs
- TimeoutException.cs
- SqlSupersetValidator.cs
- NameValuePermission.cs
- RealProxy.cs
- Operators.cs
- SizeAnimationClockResource.cs
- NameValuePermission.cs
- PreviewKeyDownEventArgs.cs
- DataSourceCache.cs
- CopyOfAction.cs
- WebServiceClientProxyGenerator.cs
- CompiledQueryCacheEntry.cs
- ReferenceSchema.cs
- DataGridHelper.cs
- DiffuseMaterial.cs
- ReadOnlyNameValueCollection.cs
- HttpListenerRequestTraceRecord.cs
- KeyValueSerializer.cs
- EntityCommandCompilationException.cs
- XmlEntity.cs
- WebControl.cs
- EditCommandColumn.cs
- ComboBoxAutomationPeer.cs
- RemotingAttributes.cs
- InternalConfigSettingsFactory.cs
- ExternalException.cs
- WizardPanel.cs
- InternalMappingException.cs
- SqlConnectionHelper.cs
- TargetFrameworkAttribute.cs
- TypeUnloadedException.cs
- FixedPageStructure.cs
- KeyEvent.cs
- CommandManager.cs
- StoreAnnotationsMap.cs
- SqlPersonalizationProvider.cs
- Transform3DGroup.cs
- DateTime.cs
- Control.cs
- Transform3DCollection.cs
- TabControlCancelEvent.cs
- IssuedTokenServiceElement.cs
- PersonalizationProviderHelper.cs
- CaseInsensitiveHashCodeProvider.cs
- MsmqQueue.cs
- XmlSchemaDatatype.cs
- ContainerUIElement3D.cs
- SafeEventLogReadHandle.cs
- CaseInsensitiveComparer.cs
- GridViewDeleteEventArgs.cs
- OperatingSystem.cs
- SerializationHelper.cs
- DecimalAverageAggregationOperator.cs
- ReadOnlyActivityGlyph.cs
- HttpResponse.cs
- DefaultBindingPropertyAttribute.cs
- ContextMenuService.cs
- CultureMapper.cs
- PowerStatus.cs
- SatelliteContractVersionAttribute.cs
- AdRotator.cs
- Registry.cs
- SByte.cs
- TreeViewCancelEvent.cs
- ComponentCollection.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- ObjectQueryProvider.cs
- ReadOnlyObservableCollection.cs
- ProvidersHelper.cs