Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / FlowDocumentPageViewerAutomationPeer.cs / 1305600 / 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
- sqlinternaltransaction.cs
- SelectionListDesigner.cs
- WebControl.cs
- DataKeyArray.cs
- _ProxyChain.cs
- ObjectDataSourceFilteringEventArgs.cs
- XComponentModel.cs
- HttpProtocolReflector.cs
- ParameterRetriever.cs
- AsymmetricKeyExchangeFormatter.cs
- BulletChrome.cs
- DateTimeFormat.cs
- OverflowException.cs
- WebException.cs
- ColumnWidthChangedEvent.cs
- MultiSelector.cs
- NavigationProgressEventArgs.cs
- ContainerParaClient.cs
- ReplacementText.cs
- TableLayoutStyleCollection.cs
- ReflectPropertyDescriptor.cs
- HierarchicalDataSourceControl.cs
- PointAnimationClockResource.cs
- RoutedPropertyChangedEventArgs.cs
- LicenseProviderAttribute.cs
- TableCellAutomationPeer.cs
- Decoder.cs
- ProfileServiceManager.cs
- RegistryDataKey.cs
- DataSourceBooleanViewSchemaConverter.cs
- UpdatePanel.cs
- ToolStripDropDown.cs
- ToolStripSeparator.cs
- EncoderReplacementFallback.cs
- Vector3dCollection.cs
- DodSequenceMerge.cs
- ArraySortHelper.cs
- HttpFileCollection.cs
- ChangeNode.cs
- ConnectionPoint.cs
- GACIdentityPermission.cs
- MultiSelectRootGridEntry.cs
- TextEditorContextMenu.cs
- DataGridViewCellStyleConverter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- itemelement.cs
- ElementProxy.cs
- DbCommandTree.cs
- KeySplineConverter.cs
- XmlChildEnumerator.cs
- MediaTimeline.cs
- SafeNativeMethodsCLR.cs
- CancelEventArgs.cs
- VisualState.cs
- HtmlTableRow.cs
- SectionRecord.cs
- ColumnCollection.cs
- TailCallAnalyzer.cs
- VoiceInfo.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ResourceManager.cs
- HttpCacheVaryByContentEncodings.cs
- DocumentGridPage.cs
- SoapIgnoreAttribute.cs
- CodeGeneratorAttribute.cs
- TimeEnumHelper.cs
- SafeFileMappingHandle.cs
- UserControl.cs
- SynchronizedInputPattern.cs
- ToolstripProfessionalRenderer.cs
- ClientConfigurationHost.cs
- NullableBoolConverter.cs
- UnauthorizedAccessException.cs
- FactoryGenerator.cs
- GeometryCollection.cs
- WpfWebRequestHelper.cs
- SqlBulkCopy.cs
- Calendar.cs
- ContractComponent.cs
- SystemColors.cs
- HashAlgorithm.cs
- Message.cs
- ContainerParaClient.cs
- RouteValueDictionary.cs
- AssemblyNameProxy.cs
- Nodes.cs
- DataSourceControl.cs
- XmlResolver.cs
- wgx_commands.cs
- CheckBox.cs
- PageHandlerFactory.cs
- StrokeSerializer.cs
- BaseProcessor.cs
- SiteMap.cs
- ISessionStateStore.cs
- MaskedTextProvider.cs
- MaterialGroup.cs
- Reference.cs
- ValidationErrorEventArgs.cs
- BatchParser.cs