Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / DocumentViewerAutomationPeer.cs / 1 / DocumentViewerAutomationPeer.cs
using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { ////// AutomationPeer associated with DocumentViewer /// public class DocumentViewerAutomationPeer : DocumentViewerBaseAutomationPeer { ////// Constructor /// /// Owner of the AutomationPeer. public DocumentViewerAutomationPeer(DocumentViewer owner) : base(owner) { } ////// override protected string GetClassNameCore() { return "DocumentViewer"; } ////// /// override public object GetPattern(PatternInterface patternInterface) { object returnValue = null; // Check if provided patternInterface is for Scroll, which is all // that is currently exposed. if (patternInterface == PatternInterface.Scroll) { // Get a reference to DocumentViewer's ScrollViewer DocumentViewer owner = (DocumentViewer)Owner; if (owner.ScrollViewer != null) { // Get a reference to ScrollViewer's AutomationPeer. AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.ScrollViewer); if (scrollPeer != null && scrollPeer is IScrollProvider) { scrollPeer.EventsSource = this; returnValue = scrollPeer; } } } else { returnValue = base.GetPattern(patternInterface); } return returnValue; } } } // 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
- XmlHelper.cs
- SymbolPair.cs
- VirtualPath.cs
- IImplicitResourceProvider.cs
- HostVisual.cs
- HttpWriter.cs
- OutputWindow.cs
- StringHandle.cs
- EventPrivateKey.cs
- DeploymentSectionCache.cs
- RSAPKCS1SignatureDeformatter.cs
- HotCommands.cs
- EpmTargetTree.cs
- PropertyEmitter.cs
- UserControlCodeDomTreeGenerator.cs
- SoapCodeExporter.cs
- OdbcDataAdapter.cs
- NavigationHelper.cs
- SqlLiftWhereClauses.cs
- ReachDocumentReferenceCollectionSerializer.cs
- KeyboardNavigation.cs
- ZoomPercentageConverter.cs
- DataControlCommands.cs
- CqlIdentifiers.cs
- ClrProviderManifest.cs
- EntityPropertyMappingAttribute.cs
- XmlSchemaSimpleTypeList.cs
- Rotation3D.cs
- HttpServerVarsCollection.cs
- EntityConnectionStringBuilder.cs
- StateDesigner.Helpers.cs
- HyperlinkAutomationPeer.cs
- BackgroundFormatInfo.cs
- MergeFilterQuery.cs
- HitTestResult.cs
- RoutedUICommand.cs
- XmlCountingReader.cs
- XmlSchemaComplexContentExtension.cs
- XmlCharacterData.cs
- HandlerElementCollection.cs
- StandardOleMarshalObject.cs
- OrderedDictionary.cs
- ImageDrawing.cs
- EncryptedPackageFilter.cs
- Validator.cs
- GacUtil.cs
- HTMLTagNameToTypeMapper.cs
- DetailsView.cs
- MetafileHeader.cs
- TextEditorCharacters.cs
- ListInitExpression.cs
- ElementsClipboardData.cs
- NetTcpSecurity.cs
- FixedSOMPageElement.cs
- AdornerDecorator.cs
- LabelLiteral.cs
- DataGridViewTopRowAccessibleObject.cs
- GenericsNotImplementedException.cs
- StringWriter.cs
- SplitterCancelEvent.cs
- XmlSchemaSimpleTypeRestriction.cs
- ListBox.cs
- ResXResourceWriter.cs
- RoutedEventValueSerializer.cs
- HandledMouseEvent.cs
- ChannelDispatcherCollection.cs
- WebPart.cs
- SubMenuStyleCollectionEditor.cs
- TrustManagerMoreInformation.cs
- SmiConnection.cs
- RoutedEventHandlerInfo.cs
- CompModSwitches.cs
- FormViewPageEventArgs.cs
- CodeTypeParameterCollection.cs
- LayoutSettings.cs
- HtmlContainerControl.cs
- DispatchProxy.cs
- OleDbTransaction.cs
- ValueSerializer.cs
- PageWrapper.cs
- WorkflowTraceTransfer.cs
- ObjectListShowCommandsEventArgs.cs
- ListQueryResults.cs
- HtmlLink.cs
- TextTreeObjectNode.cs
- ISAPIRuntime.cs
- ListViewSelectEventArgs.cs
- SocketElement.cs
- UInt32.cs
- InputScope.cs
- ObjectStateManager.cs
- PortCache.cs
- GlobalAllocSafeHandle.cs
- WebUtility.cs
- OrderPreservingPipeliningSpoolingTask.cs
- MappedMetaModel.cs
- TextFormatterHost.cs
- ElementUtil.cs
- DBSqlParser.cs
- AbsoluteQuery.cs