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
- PackageStore.cs
- EntitySqlQueryBuilder.cs
- SecurityManager.cs
- WeakReference.cs
- DataColumnMapping.cs
- Scheduler.cs
- AdPostCacheSubstitution.cs
- CompilerWrapper.cs
- AsymmetricAlgorithm.cs
- DebugView.cs
- ProfilePropertySettingsCollection.cs
- returneventsaver.cs
- NoneExcludedImageIndexConverter.cs
- SqlRewriteScalarSubqueries.cs
- SetterBaseCollection.cs
- NotFiniteNumberException.cs
- TextStore.cs
- CheckedPointers.cs
- ChangeInterceptorAttribute.cs
- ContextMenu.cs
- SafeProcessHandle.cs
- PipelineModuleStepContainer.cs
- EventsTab.cs
- DataGridViewEditingControlShowingEventArgs.cs
- BypassElement.cs
- SecurityDocument.cs
- ProcessHostFactoryHelper.cs
- HttpListenerContext.cs
- DatagridviewDisplayedBandsData.cs
- DocumentViewerHelper.cs
- RowVisual.cs
- SpecialFolderEnumConverter.cs
- CssTextWriter.cs
- HttpException.cs
- StructuralCache.cs
- InfoCardConstants.cs
- OdbcReferenceCollection.cs
- httpapplicationstate.cs
- EdgeProfileValidation.cs
- DeflateEmulationStream.cs
- addressfiltermode.cs
- FixedSOMImage.cs
- CancellationTokenRegistration.cs
- FormsAuthenticationEventArgs.cs
- PeerObject.cs
- FlowchartDesigner.xaml.cs
- RegexStringValidatorAttribute.cs
- DelegateBodyWriter.cs
- XXXInfos.cs
- CacheForPrimitiveTypes.cs
- ProcessModelInfo.cs
- ImageField.cs
- StaticTextPointer.cs
- GradientBrush.cs
- Resources.Designer.cs
- SqlDataSourceCustomCommandEditor.cs
- InstanceStore.cs
- ObjectAssociationEndMapping.cs
- SolidColorBrush.cs
- AssemblyNameUtility.cs
- XmlImplementation.cs
- DataGridCommandEventArgs.cs
- TextDecorationCollectionConverter.cs
- EntitySqlQueryBuilder.cs
- CollectionChangeEventArgs.cs
- QuinticEase.cs
- Hyperlink.cs
- UriSection.cs
- CustomPopupPlacement.cs
- BindingExpression.cs
- DataGridCaption.cs
- RegistryExceptionHelper.cs
- DefaultHttpHandler.cs
- EntityDataSourceViewSchema.cs
- FormatConvertedBitmap.cs
- UnmanagedBitmapWrapper.cs
- TextServicesProperty.cs
- SQLConvert.cs
- RadioButtonDesigner.cs
- CaretElement.cs
- FormsAuthenticationTicket.cs
- TreeNodeMouseHoverEvent.cs
- Int32Animation.cs
- ItemsControl.cs
- CompiledAction.cs
- MultiBindingExpression.cs
- FaultDesigner.cs
- ParsedRoute.cs
- SizeF.cs
- SessionEndingEventArgs.cs
- AmbientProperties.cs
- GridViewRowEventArgs.cs
- Encoder.cs
- SqlServer2KCompatibilityCheck.cs
- OperationInvokerBehavior.cs
- XXXInfos.cs
- DataRowComparer.cs
- TriggerCollection.cs
- ScrollChrome.cs
- WmlMobileTextWriter.cs