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
- MultipartContentParser.cs
- TextTreeUndoUnit.cs
- MenuItemStyle.cs
- PopupEventArgs.cs
- Fonts.cs
- AttributeEmitter.cs
- ScrollItemProviderWrapper.cs
- updateconfighost.cs
- InvalidWMPVersionException.cs
- ActivityPreviewDesigner.cs
- PropertyGrid.cs
- StructuralObject.cs
- ListItemCollection.cs
- EditorPartChrome.cs
- EditingMode.cs
- StandardBindingOptionalReliableSessionElement.cs
- WizardStepBase.cs
- SiteMapDesignerDataSourceView.cs
- GridViewRow.cs
- unsafeIndexingFilterStream.cs
- AsmxEndpointPickerExtension.cs
- ThemeableAttribute.cs
- ExceptionRoutedEventArgs.cs
- TextEffectResolver.cs
- IndependentlyAnimatedPropertyMetadata.cs
- GCHandleCookieTable.cs
- JoinTreeSlot.cs
- PrinterResolution.cs
- CorrelationKey.cs
- WindowsComboBox.cs
- ContentType.cs
- SHA512.cs
- ServiceContractListItemList.cs
- ErrorTableItemStyle.cs
- BamlRecordHelper.cs
- BookmarkUndoUnit.cs
- AutomationPatternInfo.cs
- XmlSchemaAnyAttribute.cs
- ImpersonateTokenRef.cs
- EntityContainer.cs
- SqlParameterCollection.cs
- FlowLayoutPanel.cs
- WebServiceReceive.cs
- ToolStripGripRenderEventArgs.cs
- TreeViewCancelEvent.cs
- MiniCustomAttributeInfo.cs
- ValidationRule.cs
- ScrollEvent.cs
- NotFiniteNumberException.cs
- ClientScriptManager.cs
- SignatureHelper.cs
- ButtonFieldBase.cs
- TemplateBindingExpressionConverter.cs
- XmlDocumentFragment.cs
- CLSCompliantAttribute.cs
- SessionParameter.cs
- EncryptedData.cs
- WebRequestModuleElementCollection.cs
- AssemblyResourceLoader.cs
- RayMeshGeometry3DHitTestResult.cs
- XmlPreloadedResolver.cs
- GroupBoxRenderer.cs
- TagPrefixAttribute.cs
- _SecureChannel.cs
- SafeThreadHandle.cs
- WebConfigurationHost.cs
- DataGridViewCellMouseEventArgs.cs
- TabletDeviceInfo.cs
- ClosableStream.cs
- ClientEventManager.cs
- PersianCalendar.cs
- BinaryFormatter.cs
- ToolStripScrollButton.cs
- MultiPageTextView.cs
- ReflectPropertyDescriptor.cs
- DbSourceParameterCollection.cs
- SqlIdentifier.cs
- WebControlAdapter.cs
- CultureTableRecord.cs
- ClassDataContract.cs
- XPathPatternBuilder.cs
- AttributeProviderAttribute.cs
- CompressionTransform.cs
- RewritingProcessor.cs
- CryptoHelper.cs
- ClassHandlersStore.cs
- DynamicDataManager.cs
- VScrollProperties.cs
- C14NUtil.cs
- TextServicesLoader.cs
- ServiceModelDictionary.cs
- metrodevice.cs
- WithStatement.cs
- CodePropertyReferenceExpression.cs
- HashHelper.cs
- XmlBoundElement.cs
- IdentityManager.cs
- ProcessModelInfo.cs
- RectKeyFrameCollection.cs
- DecoderFallback.cs