Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RootBrowserWindow.cs
- FtpCachePolicyElement.cs
- GridViewRowCollection.cs
- Update.cs
- HttpListenerRequest.cs
- SymbolMethod.cs
- IPAddressCollection.cs
- AsymmetricSignatureFormatter.cs
- SHA384Managed.cs
- Funcletizer.cs
- DoubleLinkListEnumerator.cs
- XPathDocumentIterator.cs
- DesignerView.cs
- GeneralTransform.cs
- PropertyItemInternal.cs
- WorkflowCompensationBehavior.cs
- CompilerResults.cs
- XmlSchemaCompilationSettings.cs
- M3DUtil.cs
- DataTable.cs
- SafeNativeMethods.cs
- WebException.cs
- WebPartPersonalization.cs
- DesignerActionGlyph.cs
- CustomValidator.cs
- xmlfixedPageInfo.cs
- SoapDocumentServiceAttribute.cs
- InertiaRotationBehavior.cs
- DataPointer.cs
- SystemIPv4InterfaceProperties.cs
- StringCollection.cs
- Compiler.cs
- SemanticValue.cs
- WebPartCloseVerb.cs
- RowSpanVector.cs
- BaseCAMarshaler.cs
- HttpClientCertificate.cs
- ValidationEventArgs.cs
- ModelTypeConverter.cs
- XmlNodeChangedEventArgs.cs
- RecognizerStateChangedEventArgs.cs
- AppDomain.cs
- TableDetailsRow.cs
- LabelAutomationPeer.cs
- RegistryExceptionHelper.cs
- DrawingContextDrawingContextWalker.cs
- ProfileInfo.cs
- EDesignUtil.cs
- DisposableCollectionWrapper.cs
- WebScriptEnablingElement.cs
- SettingsPropertyIsReadOnlyException.cs
- StringFreezingAttribute.cs
- TaiwanLunisolarCalendar.cs
- Pointer.cs
- DispatcherHookEventArgs.cs
- PersianCalendar.cs
- UserControl.cs
- DesignOnlyAttribute.cs
- HttpListenerException.cs
- shaper.cs
- TreeNodeConverter.cs
- CryptoKeySecurity.cs
- OSFeature.cs
- DataStreamFromComStream.cs
- SecurityContext.cs
- TextElementEnumerator.cs
- ScrollPatternIdentifiers.cs
- SignatureToken.cs
- XXXOnTypeBuilderInstantiation.cs
- InitializationEventAttribute.cs
- BindToObject.cs
- ViewgenGatekeeper.cs
- UnionCodeGroup.cs
- MultiBindingExpression.cs
- WindowsSpinner.cs
- DirectionalLight.cs
- DesignerExtenders.cs
- InlineUIContainer.cs
- DescendentsWalker.cs
- HttpAsyncResult.cs
- CorrelationToken.cs
- DropDownList.cs
- DynamicILGenerator.cs
- SqlParameterCollection.cs
- RequiredFieldValidator.cs
- ReadOnlyDictionary.cs
- TraceSection.cs
- VerificationException.cs
- EventSetterHandlerConverter.cs
- TypeValidationEventArgs.cs
- TextAutomationPeer.cs
- DiagnosticEventProvider.cs
- ArgumentNullException.cs
- versioninfo.cs
- EncoderParameters.cs
- ObjectTag.cs
- DataBindingsDialog.cs
- returneventsaver.cs
- DataObjectEventArgs.cs
- ThicknessAnimationBase.cs