Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Automation / Peers / ScrollBarAutomationPeer.cs / 1 / ScrollBarAutomationPeer.cs
using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class ScrollBarAutomationPeer : RangeBaseAutomationPeer { /// public ScrollBarAutomationPeer(ScrollBar owner): base(owner) { } /// override protected string GetClassNameCore() { return "ScrollBar"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.ScrollBar; } /// protected override Point GetClickablePointCore() { return new Point(double.NaN, double.NaN); } /// protected override AutomationOrientation GetOrientationCore() { return ((ScrollBar)Owner).Orientation == Orientation.Horizontal ? AutomationOrientation.Horizontal : AutomationOrientation.Vertical; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class ScrollBarAutomationPeer : RangeBaseAutomationPeer { /// public ScrollBarAutomationPeer(ScrollBar owner): base(owner) { } /// override protected string GetClassNameCore() { return "ScrollBar"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.ScrollBar; } /// protected override Point GetClickablePointCore() { return new Point(double.NaN, double.NaN); } /// protected override AutomationOrientation GetOrientationCore() { return ((ScrollBar)Owner).Orientation == Orientation.Horizontal ? AutomationOrientation.Horizontal : AutomationOrientation.Vertical; } } } // 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
- SelectionRange.cs
- StringBuilder.cs
- EdmTypeAttribute.cs
- ControlCachePolicy.cs
- XmlSerializerVersionAttribute.cs
- DependencyPropertyDescriptor.cs
- DataKey.cs
- FormsIdentity.cs
- TimeSpanOrInfiniteConverter.cs
- HtmlWindow.cs
- BitmapFrameDecode.cs
- RegexWorker.cs
- HtmlEncodedRawTextWriter.cs
- HTMLTextWriter.cs
- ContentElement.cs
- WebResponse.cs
- HttpServerVarsCollection.cs
- CodeIdentifiers.cs
- ActivityExecutor.cs
- XmlAnyElementAttributes.cs
- GridViewDeleteEventArgs.cs
- ArgIterator.cs
- DataTemplate.cs
- NavigationProperty.cs
- PrePrepareMethodAttribute.cs
- ConnectionManagementElement.cs
- ProxyHwnd.cs
- Object.cs
- METAHEADER.cs
- LinkLabel.cs
- CryptographicAttribute.cs
- WebReferenceCollection.cs
- SortAction.cs
- WebPartConnection.cs
- GeneralTransform2DTo3D.cs
- ClientSettingsSection.cs
- CodeDomConfigurationHandler.cs
- TrustManagerPromptUI.cs
- AnnotationResource.cs
- RectAnimationBase.cs
- TrackingWorkflowEventArgs.cs
- Canvas.cs
- SymDocumentType.cs
- ObjectConverter.cs
- QilPatternFactory.cs
- EntityCommand.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SqlConnection.cs
- ImageInfo.cs
- TimeoutStream.cs
- RolePrincipal.cs
- BindUriHelper.cs
- XmlLanguage.cs
- ChtmlCommandAdapter.cs
- InvalidFilterCriteriaException.cs
- MultiDataTrigger.cs
- PolyLineSegment.cs
- XmlDocumentViewSchema.cs
- KnownTypes.cs
- PointLight.cs
- RelatedPropertyManager.cs
- GeometryDrawing.cs
- Boolean.cs
- AdornerPresentationContext.cs
- RichTextBox.cs
- TypeForwardedToAttribute.cs
- SerializationAttributes.cs
- UserNamePasswordValidationMode.cs
- InvalidOleVariantTypeException.cs
- EndpointConfigContainer.cs
- VersionedStream.cs
- AcceleratedTokenProvider.cs
- UserMapPath.cs
- DesignerTransaction.cs
- BamlLocalizationDictionary.cs
- CultureInfoConverter.cs
- EncoderParameter.cs
- SqlDataSourceFilteringEventArgs.cs
- SqlFacetAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PanelStyle.cs
- RadioButtonList.cs
- DesignTimeTemplateParser.cs
- WindowsButton.cs
- SqlDataSourceView.cs
- IssuedTokenClientCredential.cs
- EventWaitHandle.cs
- ConfigurationStrings.cs
- BooleanFunctions.cs
- FileUtil.cs
- DataGridColumnCollection.cs
- DataShape.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- XmlImplementation.cs
- AsyncWaitHandle.cs
- ThreadPool.cs
- HttpCapabilitiesSectionHandler.cs
- DbDataAdapter.cs
- WSSecurityPolicy11.cs
- UrlPath.cs