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
- MimeMultiPart.cs
- WindowsEditBox.cs
- DBNull.cs
- AndCondition.cs
- SoapObjectInfo.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- ControlType.cs
- EDesignUtil.cs
- GeneralTransform3DTo2D.cs
- ObjectParameter.cs
- SpecialNameAttribute.cs
- ColumnCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- AttachedAnnotation.cs
- FixedTextView.cs
- PrimaryKeyTypeConverter.cs
- IOThreadTimer.cs
- shaperfactoryquerycacheentry.cs
- WebBrowserBase.cs
- TriggerAction.cs
- DescendantQuery.cs
- RtType.cs
- QilInvokeLateBound.cs
- SmtpException.cs
- diagnosticsswitches.cs
- Selection.cs
- GlyphRunDrawing.cs
- LockedHandleGlyph.cs
- GiveFeedbackEvent.cs
- WindowsStatusBar.cs
- RuntimeArgumentHandle.cs
- SizeLimitedCache.cs
- ErrorWebPart.cs
- Subset.cs
- DataGridColumnDropSeparator.cs
- WriterOutput.cs
- RuleSettingsCollection.cs
- EncryptedData.cs
- XmlILStorageConverter.cs
- ScrollBarRenderer.cs
- FocusWithinProperty.cs
- GridViewCommandEventArgs.cs
- SerialErrors.cs
- DataMemberFieldEditor.cs
- ListBindingConverter.cs
- InputReportEventArgs.cs
- TransformerTypeCollection.cs
- TextEditorCopyPaste.cs
- GridView.cs
- WebColorConverter.cs
- AdRotatorDesigner.cs
- OverflowException.cs
- Types.cs
- DefaultBindingPropertyAttribute.cs
- ServiceProviders.cs
- Transform.cs
- PropertySourceInfo.cs
- VersionedStream.cs
- Margins.cs
- _IPv4Address.cs
- PhysicalAddress.cs
- GridViewColumnHeader.cs
- RoutedEventConverter.cs
- XmlCustomFormatter.cs
- ComboBoxRenderer.cs
- BitConverter.cs
- PolygonHotSpot.cs
- CodeMemberMethod.cs
- BufferModesCollection.cs
- CfgParser.cs
- CqlQuery.cs
- XPathChildIterator.cs
- BlurBitmapEffect.cs
- recordstatefactory.cs
- SerializableAttribute.cs
- EventQueueState.cs
- ContainerUtilities.cs
- DataGridLinkButton.cs
- SmtpLoginAuthenticationModule.cs
- HeaderUtility.cs
- DesignerDataConnection.cs
- TypeBrowserDialog.cs
- SuppressIldasmAttribute.cs
- TableLayoutSettings.cs
- WebPartConnectionCollection.cs
- SamlAuthenticationClaimResource.cs
- ReferenceAssemblyAttribute.cs
- DeviceContext.cs
- oledbmetadatacolumnnames.cs
- NotifyCollectionChangedEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- NameTable.cs
- commandenforcer.cs
- RSAPKCS1SignatureFormatter.cs
- QilLoop.cs
- XmlAtomicValue.cs
- FlowDocumentReader.cs
- TransformerInfo.cs
- JpegBitmapDecoder.cs
- StackBuilderSink.cs