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
- DefaultProxySection.cs
- Dynamic.cs
- CSharpCodeProvider.cs
- ExecutionPropertyManager.cs
- PropertyChangingEventArgs.cs
- ColumnCollection.cs
- DockPatternIdentifiers.cs
- QilVisitor.cs
- TriggerBase.cs
- SelectedGridItemChangedEvent.cs
- SecureUICommand.cs
- RequestQueryParser.cs
- DataControlFieldCell.cs
- MulticastDelegate.cs
- CodeMemberField.cs
- TrackPointCollection.cs
- UInt64Storage.cs
- ButtonStandardAdapter.cs
- ModelPerspective.cs
- Table.cs
- InputDevice.cs
- PropVariant.cs
- FragmentQueryKB.cs
- SamlAssertion.cs
- ValidationEventArgs.cs
- DataReaderContainer.cs
- HelpInfo.cs
- ConnectionConsumerAttribute.cs
- CatalogPart.cs
- FormattedTextSymbols.cs
- MonitoringDescriptionAttribute.cs
- SpellerHighlightLayer.cs
- PasswordTextContainer.cs
- SizeFConverter.cs
- SortDescriptionCollection.cs
- ConstructorNeedsTagAttribute.cs
- WindowsImpersonationContext.cs
- WebPartEditorCancelVerb.cs
- NotifyCollectionChangedEventArgs.cs
- SoapIgnoreAttribute.cs
- Rectangle.cs
- XmlObjectSerializerReadContextComplex.cs
- ZipFileInfo.cs
- Triplet.cs
- XmlCharacterData.cs
- ITextView.cs
- SqlProvider.cs
- WebPartVerbsEventArgs.cs
- VisualProxy.cs
- HtmlInputButton.cs
- HandoffBehavior.cs
- MsmqIntegrationSecurityElement.cs
- CompositeKey.cs
- StringAnimationBase.cs
- DetectRunnableInstancesTask.cs
- LabelDesigner.cs
- CTreeGenerator.cs
- SurrogateEncoder.cs
- CodeTypeDeclarationCollection.cs
- ConcurrentBag.cs
- ToggleButtonAutomationPeer.cs
- DebuggerAttributes.cs
- EventLogPermissionAttribute.cs
- VirtualDirectoryMappingCollection.cs
- TransformGroup.cs
- SoapIgnoreAttribute.cs
- EntryWrittenEventArgs.cs
- TypeHelper.cs
- SQLMembershipProvider.cs
- ObjectConverter.cs
- BitmapFrameDecode.cs
- HttpProfileBase.cs
- HandledEventArgs.cs
- TextDecoration.cs
- Misc.cs
- HtmlElementCollection.cs
- ColorKeyFrameCollection.cs
- Vector3DCollectionValueSerializer.cs
- CurrencyWrapper.cs
- OrderByQueryOptionExpression.cs
- ThreadAttributes.cs
- OnOperation.cs
- SemanticAnalyzer.cs
- DateTimeParse.cs
- WindowsAuthenticationEventArgs.cs
- CodeIndexerExpression.cs
- ElementProxy.cs
- Double.cs
- Viewport2DVisual3D.cs
- HttpClientCertificate.cs
- HtmlFormAdapter.cs
- FormClosedEvent.cs
- XmlSchemaSubstitutionGroup.cs
- InputGestureCollection.cs
- HyperLinkStyle.cs
- ExecutionScope.cs
- DataControlPagerLinkButton.cs
- DocumentReferenceCollection.cs
- PropertyMapper.cs
- dbenumerator.cs