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
- AbsoluteQuery.cs
- OracleBoolean.cs
- RSAOAEPKeyExchangeFormatter.cs
- SafeNativeMethodsOther.cs
- SQLDecimal.cs
- DesignerAttribute.cs
- DataGridTable.cs
- ObjectKeyFrameCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- WebServiceEnumData.cs
- GPPOINT.cs
- SecurityVersion.cs
- AsyncCompletedEventArgs.cs
- XPathItem.cs
- QueryRewriter.cs
- InvalidFilterCriteriaException.cs
- Group.cs
- ColorMap.cs
- NavigationPropertyEmitter.cs
- GridViewDeleteEventArgs.cs
- InstancePersistenceCommand.cs
- AllMembershipCondition.cs
- Walker.cs
- CorePropertiesFilter.cs
- PrinterResolution.cs
- BamlBinaryWriter.cs
- ParameterInfo.cs
- VirtualPathUtility.cs
- DocumentSequence.cs
- TypeListConverter.cs
- Page.cs
- Win32SafeHandles.cs
- IxmlLineInfo.cs
- BulletedList.cs
- coordinatorscratchpad.cs
- ConfigXmlElement.cs
- HeaderedContentControl.cs
- PartitionResolver.cs
- EdmItemCollection.cs
- XmlIterators.cs
- VirtualizingStackPanel.cs
- WindowsEditBox.cs
- TraceSwitch.cs
- BindingList.cs
- FilteredDataSetHelper.cs
- RealizedColumnsBlock.cs
- Content.cs
- base64Transforms.cs
- oledbmetadatacollectionnames.cs
- StreamAsIStream.cs
- DataRelation.cs
- TableItemPatternIdentifiers.cs
- StringResourceManager.cs
- RunWorkerCompletedEventArgs.cs
- ScriptResourceInfo.cs
- AuthenticationException.cs
- ImageMetadata.cs
- RichTextBoxConstants.cs
- FieldInfo.cs
- CreateUserWizard.cs
- XPathMessageContext.cs
- PartialList.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- OneWayElement.cs
- BasicKeyConstraint.cs
- LiteralControl.cs
- SocketAddress.cs
- CodeBlockBuilder.cs
- PassportAuthentication.cs
- EntityDataSourceDataSelection.cs
- EntityStoreSchemaGenerator.cs
- WebPartRestoreVerb.cs
- IISUnsafeMethods.cs
- DefinitionBase.cs
- CodeCastExpression.cs
- HyperLinkColumn.cs
- IgnoreDeviceFilterElement.cs
- Cursor.cs
- DataBindingHandlerAttribute.cs
- Helper.cs
- IndexOutOfRangeException.cs
- XmlNode.cs
- RecommendedAsConfigurableAttribute.cs
- LongValidatorAttribute.cs
- TabControlAutomationPeer.cs
- SingleSelectRootGridEntry.cs
- PageParserFilter.cs
- webeventbuffer.cs
- WebBrowserContainer.cs
- EmptyEnumerator.cs
- Missing.cs
- DropDownList.cs
- GenericArgumentsUpdater.cs
- ByteStreamGeometryContext.cs
- OleDbReferenceCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- WebCategoryAttribute.cs
- FusionWrap.cs
- CounterSample.cs
- ZoomComboBox.cs