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
- RectangleHotSpot.cs
- ComponentManagerBroker.cs
- WebControlsSection.cs
- Adorner.cs
- BrowserCapabilitiesFactory.cs
- ConnectionConsumerAttribute.cs
- Serializer.cs
- DatePickerAutomationPeer.cs
- PixelFormats.cs
- SqlVisitor.cs
- PrivilegedConfigurationManager.cs
- FormViewRow.cs
- ContentOperations.cs
- Window.cs
- LogicalExpressionEditor.cs
- _TimerThread.cs
- GridViewAutomationPeer.cs
- TextTreeTextNode.cs
- SiteMapProvider.cs
- ContourSegment.cs
- DBPropSet.cs
- ImmutableClientRuntime.cs
- DiscreteKeyFrames.cs
- InputMethodStateTypeInfo.cs
- NoneExcludedImageIndexConverter.cs
- RootAction.cs
- DbConnectionPoolIdentity.cs
- DesignerCapabilities.cs
- ChineseLunisolarCalendar.cs
- Point.cs
- SendKeys.cs
- WorkflowElementDialog.cs
- InvalidOperationException.cs
- MenuItemStyle.cs
- UnmanagedMemoryStream.cs
- SqlBulkCopy.cs
- IdnElement.cs
- UInt32Storage.cs
- TreeNodeBindingCollection.cs
- DtdParser.cs
- DataGridViewCellValidatingEventArgs.cs
- RangeValidator.cs
- BoundField.cs
- InplaceBitmapMetadataWriter.cs
- DeferredTextReference.cs
- VirtualDirectoryMapping.cs
- FileLogRecordStream.cs
- GeneralTransform3D.cs
- ToolStripSplitStackLayout.cs
- KnownTypes.cs
- SID.cs
- ParagraphVisual.cs
- TextElementAutomationPeer.cs
- DataDocumentXPathNavigator.cs
- CmsInterop.cs
- SchemaImporterExtensionElementCollection.cs
- RelationshipConverter.cs
- AttachedAnnotationChangedEventArgs.cs
- Context.cs
- RbTree.cs
- CodeSnippetStatement.cs
- FlowLayout.cs
- XmlCharCheckingWriter.cs
- UnicastIPAddressInformationCollection.cs
- ApplicationId.cs
- EdmComplexTypeAttribute.cs
- RawTextInputReport.cs
- ObfuscationAttribute.cs
- HtmlTextViewAdapter.cs
- XPathNodePointer.cs
- SamlAssertionKeyIdentifierClause.cs
- SqlCachedBuffer.cs
- ProvidersHelper.cs
- BuildDependencySet.cs
- EntityContainer.cs
- CngKeyCreationParameters.cs
- HotSpot.cs
- UnmanagedMemoryStream.cs
- Parser.cs
- Rijndael.cs
- PropertyGeneratedEventArgs.cs
- HttpListenerContext.cs
- AVElementHelper.cs
- ManagementOperationWatcher.cs
- PhysicalOps.cs
- UiaCoreProviderApi.cs
- XmlCustomFormatter.cs
- UnsafeNativeMethods.cs
- ComponentDispatcher.cs
- TraceFilter.cs
- CircleHotSpot.cs
- RelationshipFixer.cs
- Fonts.cs
- NamedPipeAppDomainProtocolHandler.cs
- RuntimeHandles.cs
- PersonalizationProviderHelper.cs
- ClientSponsor.cs
- RealizedColumnsBlock.cs
- SHA512.cs
- ShimAsPublicXamlType.cs