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
- RegexGroup.cs
- Restrictions.cs
- PartialClassGenerationTaskInternal.cs
- PlatformNotSupportedException.cs
- SiteMapSection.cs
- SystemInformation.cs
- DBConnection.cs
- HtmlInputPassword.cs
- DiagnosticsConfiguration.cs
- AmbientValueAttribute.cs
- Util.cs
- MediaPlayer.cs
- RoleServiceManager.cs
- GlobalizationSection.cs
- SchemaReference.cs
- ProtocolsSection.cs
- SqlDataSourceConnectionPanel.cs
- EncoderParameter.cs
- Command.cs
- XmlSchemaSet.cs
- ConstrainedGroup.cs
- DataViewListener.cs
- SessionIDManager.cs
- _HTTPDateParse.cs
- CodeCastExpression.cs
- CFStream.cs
- ClassImporter.cs
- SqlClientWrapperSmiStreamChars.cs
- ByteFacetDescriptionElement.cs
- WindowsTooltip.cs
- ValidatorAttribute.cs
- DbModificationCommandTree.cs
- TreeViewHitTestInfo.cs
- TagPrefixInfo.cs
- SqlUserDefinedAggregateAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- SoapCodeExporter.cs
- ReadOnlyDictionary.cs
- EventSetter.cs
- CodeMemberMethod.cs
- TabItem.cs
- TableLayoutRowStyleCollection.cs
- RijndaelManagedTransform.cs
- METAHEADER.cs
- MenuItem.cs
- ValueChangedEventManager.cs
- ExpressionBuilderCollection.cs
- WriteStateInfoBase.cs
- updateconfighost.cs
- TextShapeableCharacters.cs
- HttpClientCredentialType.cs
- JoinGraph.cs
- SendMailErrorEventArgs.cs
- FormViewUpdateEventArgs.cs
- InstancePersistenceCommandException.cs
- Rule.cs
- PropertyPath.cs
- StrongNameIdentityPermission.cs
- ObjectDataSourceStatusEventArgs.cs
- MenuTracker.cs
- SystemDropShadowChrome.cs
- MimeMapping.cs
- HttpCacheParams.cs
- FileInfo.cs
- WorkflowRequestContext.cs
- DmlSqlGenerator.cs
- DataServiceSaveChangesEventArgs.cs
- DataGrid.cs
- UIElementParaClient.cs
- Stacktrace.cs
- FlowDocumentPaginator.cs
- LinqDataSourceContextEventArgs.cs
- ContainerVisual.cs
- XsdValidatingReader.cs
- ScriptComponentDescriptor.cs
- newinstructionaction.cs
- DateTimeFormatInfo.cs
- ControlTemplate.cs
- IPAddress.cs
- ListenerElementsCollection.cs
- RotateTransform.cs
- XhtmlBasicPageAdapter.cs
- EdmScalarPropertyAttribute.cs
- OdbcError.cs
- MediaContext.cs
- FunctionGenerator.cs
- MembershipValidatePasswordEventArgs.cs
- MimeMapping.cs
- ToolboxBitmapAttribute.cs
- OpCellTreeNode.cs
- Parameter.cs
- QuaternionRotation3D.cs
- Pair.cs
- BinaryObjectInfo.cs
- XslAstAnalyzer.cs
- TickBar.cs
- BufferModeSettings.cs
- CharacterBufferReference.cs
- Roles.cs
- ItemsControl.cs