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
- AutoResizedEvent.cs
- TreeNodeCollection.cs
- AnnotationResource.cs
- ExpressionLexer.cs
- CodeTypeOfExpression.cs
- DependencyObject.cs
- MenuItemBindingCollection.cs
- NamedElement.cs
- CookieParameter.cs
- ExpressionBindings.cs
- DbFunctionCommandTree.cs
- CursorConverter.cs
- WebZone.cs
- ListDictionary.cs
- ObjectSet.cs
- ObjectViewEntityCollectionData.cs
- RequiredAttributeAttribute.cs
- Error.cs
- StylusPointPropertyInfoDefaults.cs
- PopOutPanel.cs
- WmfPlaceableFileHeader.cs
- _WebProxyDataBuilder.cs
- SQLDouble.cs
- WhitespaceRuleReader.cs
- OpenTypeCommon.cs
- HtmlImage.cs
- ReachPageContentCollectionSerializerAsync.cs
- CodeSnippetExpression.cs
- Message.cs
- DeclarativeCatalogPartDesigner.cs
- SqlDataSourceWizardForm.cs
- XmlSiteMapProvider.cs
- RelOps.cs
- DetailsViewPagerRow.cs
- CapiSymmetricAlgorithm.cs
- KeyInstance.cs
- TextHidden.cs
- RecommendedAsConfigurableAttribute.cs
- httpapplicationstate.cs
- UITypeEditor.cs
- GlobalizationAssembly.cs
- DrawingVisual.cs
- HttpPostedFile.cs
- RuleCache.cs
- XpsPackagingPolicy.cs
- TransportDefaults.cs
- DataGridViewBand.cs
- SwitchLevelAttribute.cs
- PropertyHelper.cs
- Control.cs
- PathFigure.cs
- TypeSystemProvider.cs
- SafePEFileHandle.cs
- CompositeKey.cs
- ElapsedEventArgs.cs
- SingleAnimation.cs
- ApplyHostConfigurationBehavior.cs
- SelectionRangeConverter.cs
- VisualTreeHelper.cs
- PerfProviderCollection.cs
- CryptoApi.cs
- CommonGetThemePartSize.cs
- SpellerHighlightLayer.cs
- FrameAutomationPeer.cs
- OperatorExpressions.cs
- ValueType.cs
- Operator.cs
- Menu.cs
- XmlLanguageConverter.cs
- MessageSmuggler.cs
- ProvidePropertyAttribute.cs
- CacheAxisQuery.cs
- DescendantOverDescendantQuery.cs
- PersistenceMetadataNamespace.cs
- StandardToolWindows.cs
- FontSource.cs
- HtmlElementErrorEventArgs.cs
- ListViewTableRow.cs
- SchemeSettingElement.cs
- StateRuntime.cs
- DllNotFoundException.cs
- _KerberosClient.cs
- MsmqIntegrationSecurityElement.cs
- AccessDataSource.cs
- EntityDesignerUtils.cs
- CompilationLock.cs
- RangeValidator.cs
- MenuItemAutomationPeer.cs
- ExpanderAutomationPeer.cs
- HtmlUtf8RawTextWriter.cs
- counter.cs
- InputReportEventArgs.cs
- DesignConnection.cs
- RowSpanVector.cs
- EntityDataSourceStatementEditorForm.cs
- WindowInteropHelper.cs
- ProviderConnectionPoint.cs
- CodeTypeDeclarationCollection.cs
- StagingAreaInputItem.cs
- PrintingPermission.cs