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
- XmlNullResolver.cs
- SecurityManager.cs
- NameValueConfigurationCollection.cs
- CodeDirectoryCompiler.cs
- WindowsRichEditRange.cs
- UnionCqlBlock.cs
- DataGridViewToolTip.cs
- TextSpan.cs
- DataGridViewAccessibleObject.cs
- OperandQuery.cs
- ConditionChanges.cs
- TextTreeObjectNode.cs
- TableItemProviderWrapper.cs
- HandleTable.cs
- NativeMethods.cs
- ObjectTypeMapping.cs
- KerberosSecurityTokenProvider.cs
- Button.cs
- ResourceDisplayNameAttribute.cs
- CodeDomDecompiler.cs
- DoubleIndependentAnimationStorage.cs
- GridViewDeleteEventArgs.cs
- LinkClickEvent.cs
- InfoCardCryptoHelper.cs
- SelectionGlyphBase.cs
- TdsParserSessionPool.cs
- AuthenticationModuleElement.cs
- Pkcs9Attribute.cs
- validation.cs
- VisualProxy.cs
- SemanticResultValue.cs
- DatasetMethodGenerator.cs
- DelegateCompletionCallbackWrapper.cs
- EventRouteFactory.cs
- ReferentialConstraint.cs
- TextInfo.cs
- CryptoKeySecurity.cs
- ParseChildrenAsPropertiesAttribute.cs
- FileFormatException.cs
- ComponentEvent.cs
- MenuItemBinding.cs
- WorkflowElementDialogWindow.xaml.cs
- EncoderFallback.cs
- Error.cs
- EntityDescriptor.cs
- ToolStripLabel.cs
- SecurityTokenSerializer.cs
- GeneralTransform3DGroup.cs
- _SpnDictionary.cs
- CodeIterationStatement.cs
- LinqDataSourceInsertEventArgs.cs
- Ipv6Element.cs
- UpDownEvent.cs
- WizardPanel.cs
- MetadataHelper.cs
- XmlnsPrefixAttribute.cs
- ReturnType.cs
- NameObjectCollectionBase.cs
- XmlLanguageConverter.cs
- ViewPort3D.cs
- EntityCommandDefinition.cs
- EventBuilder.cs
- FontDifferentiator.cs
- Certificate.cs
- DeviceFilterDictionary.cs
- FunctionNode.cs
- InputDevice.cs
- VariantWrapper.cs
- SliderAutomationPeer.cs
- SecurityElement.cs
- TableRowCollection.cs
- XmlCharacterData.cs
- WindowPatternIdentifiers.cs
- PermissionRequestEvidence.cs
- LinqDataSourceStatusEventArgs.cs
- XmlEncoding.cs
- UInt16Converter.cs
- BulletedListEventArgs.cs
- TextSchema.cs
- UnmanagedBitmapWrapper.cs
- SkinBuilder.cs
- NonPrimarySelectionGlyph.cs
- MethodCallConverter.cs
- AuthenticationManager.cs
- MexNamedPipeBindingElement.cs
- TypeBuilderInstantiation.cs
- DeferredReference.cs
- HMACSHA256.cs
- SrgsToken.cs
- XsltFunctions.cs
- AssemblyAssociatedContentFileAttribute.cs
- EdmItemCollection.cs
- ClosableStream.cs
- ConnectionManagementElement.cs
- HttpRuntimeSection.cs
- SqlGenerator.cs
- DecimalConstantAttribute.cs
- Int64KeyFrameCollection.cs
- WebPartHeaderCloseVerb.cs
- Interlocked.cs