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
- PrintPreviewControl.cs
- XmlNodeReader.cs
- ElementsClipboardData.cs
- BamlReader.cs
- PixelShader.cs
- ServicePoint.cs
- CompleteWizardStep.cs
- UrlAuthorizationModule.cs
- PageFunction.cs
- SingleObjectCollection.cs
- EntityDesignerUtils.cs
- DataGridRelationshipRow.cs
- Exception.cs
- dtdvalidator.cs
- DispatcherSynchronizationContext.cs
- ObjectDataSourceMethodEditor.cs
- DataGridComponentEditor.cs
- PaintEvent.cs
- SchemeSettingElement.cs
- BufferedGraphicsContext.cs
- LinkButton.cs
- SqlServer2KCompatibilityCheck.cs
- FixedSOMLineRanges.cs
- EntityDataSourceDesignerHelper.cs
- Variable.cs
- DrawingCollection.cs
- PaperSize.cs
- ResXResourceWriter.cs
- MessageQueueInstaller.cs
- PropertyItemInternal.cs
- CommandTreeTypeHelper.cs
- OutgoingWebRequestContext.cs
- DataGridColumnCollectionEditor.cs
- HttpInputStream.cs
- NestedContainer.cs
- RequestQueryParser.cs
- List.cs
- PermissionSetTriple.cs
- VBCodeProvider.cs
- RelationshipFixer.cs
- EntityDataSource.cs
- HttpRuntime.cs
- CacheOutputQuery.cs
- EventLog.cs
- DataMemberConverter.cs
- QuotedPairReader.cs
- TranslateTransform.cs
- WebPartDisplayMode.cs
- StylusPointProperties.cs
- GroupItem.cs
- KeyValuePairs.cs
- DecoderExceptionFallback.cs
- BinaryCommonClasses.cs
- ListViewUpdatedEventArgs.cs
- TypeForwardedToAttribute.cs
- DefaultAsyncDataDispatcher.cs
- LinqDataView.cs
- ParallelEnumerableWrapper.cs
- DataBoundControlHelper.cs
- DataGridAddNewRow.cs
- CustomTypeDescriptor.cs
- AuthenticationConfig.cs
- ControlPropertyNameConverter.cs
- WebPartMovingEventArgs.cs
- SplineKeyFrames.cs
- PictureBox.cs
- EntityClassGenerator.cs
- CategoryNameCollection.cs
- MdImport.cs
- ProviderIncompatibleException.cs
- DeclaredTypeElement.cs
- RoutedEventArgs.cs
- MILUtilities.cs
- RenderData.cs
- CheckPair.cs
- FilterEventArgs.cs
- GeometryDrawing.cs
- XmlSignificantWhitespace.cs
- RMEnrollmentPage1.cs
- dataSvcMapFileLoader.cs
- ImageButton.cs
- CodeMethodReturnStatement.cs
- SessionStateUtil.cs
- JournalEntryListConverter.cs
- PartialList.cs
- RtType.cs
- MetadataItemSerializer.cs
- EnumType.cs
- XmlFormatExtensionPointAttribute.cs
- ConfigurationStrings.cs
- OutgoingWebRequestContext.cs
- UnsafeNetInfoNativeMethods.cs
- FrameworkReadOnlyPropertyMetadata.cs
- RootNamespaceAttribute.cs
- PassportPrincipal.cs
- PageCodeDomTreeGenerator.cs
- RegexCharClass.cs
- GridViewRowEventArgs.cs
- DbConnectionPoolGroup.cs
- PackWebRequest.cs