Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- WindowsIdentity.cs
- XmlSerializerFactory.cs
- FrameworkElementFactory.cs
- StrongTypingException.cs
- AppSettingsReader.cs
- FolderBrowserDialog.cs
- MD5.cs
- RegexNode.cs
- RuleElement.cs
- assertwrapper.cs
- DataGridTableStyleMappingNameEditor.cs
- Line.cs
- DragDrop.cs
- UInt16Storage.cs
- InfoCardX509Validator.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SmiGettersStream.cs
- BinaryVersion.cs
- XmlEnumAttribute.cs
- SspiWrapper.cs
- LeaseManager.cs
- EtwProvider.cs
- EntityException.cs
- RootBrowserWindowAutomationPeer.cs
- DataGridViewControlCollection.cs
- Stream.cs
- ObservableDictionary.cs
- ToolStripKeyboardHandlingService.cs
- Vector3DCollection.cs
- KeyedPriorityQueue.cs
- VectorAnimationBase.cs
- MethodCallTranslator.cs
- sqlpipe.cs
- RestHandler.cs
- ServiceChannelManager.cs
- VectorKeyFrameCollection.cs
- HashHelper.cs
- DataTableCollection.cs
- DataControlLinkButton.cs
- TextEffect.cs
- InvalidDataException.cs
- StreamGeometry.cs
- CompositeScriptReferenceEventArgs.cs
- SQLString.cs
- NumberEdit.cs
- XamlTypeMapper.cs
- Expression.cs
- PreProcessor.cs
- AttributeEmitter.cs
- TypeInfo.cs
- WriteFileContext.cs
- PrivilegeNotHeldException.cs
- TriggerActionCollection.cs
- ToolStripItemClickedEventArgs.cs
- counter.cs
- BitmapSourceSafeMILHandle.cs
- SqlCacheDependencyDatabase.cs
- DomainUpDown.cs
- FontCacheUtil.cs
- StreamSecurityUpgradeProvider.cs
- BoundConstants.cs
- ProgressBarRenderer.cs
- ActivationArguments.cs
- CodeComment.cs
- ListViewHitTestInfo.cs
- MarshalDirectiveException.cs
- HttpBrowserCapabilitiesBase.cs
- CompiledELinqQueryState.cs
- BamlWriter.cs
- FamilyMapCollection.cs
- TransformerInfoCollection.cs
- TextBoxBase.cs
- XmlNullResolver.cs
- SqlBuffer.cs
- EpmTargetPathSegment.cs
- ReferenceConverter.cs
- DebugInfoExpression.cs
- EqualityComparer.cs
- ProviderSettingsCollection.cs
- FastEncoderWindow.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PerfProviderCollection.cs
- EntityWithKeyStrategy.cs
- SignatureTargetIdManager.cs
- LazyTextWriterCreator.cs
- DataGridViewHeaderCell.cs
- arabicshape.cs
- TimelineGroup.cs
- ListViewGroup.cs
- UInt16.cs
- DataBindingExpressionBuilder.cs
- ReflectTypeDescriptionProvider.cs
- SchemaCompiler.cs
- XsltCompileContext.cs
- ProviderIncompatibleException.cs
- FormViewCommandEventArgs.cs
- control.ime.cs
- RSACryptoServiceProvider.cs
- UrlMapping.cs
- HtmlShimManager.cs