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
- SchemaImporterExtensionElement.cs
- ServerValidateEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- ControlPropertyNameConverter.cs
- Utility.cs
- HtmlElement.cs
- ErrorFormatter.cs
- WorkflowOwnerAsyncResult.cs
- InvalidComObjectException.cs
- RuntimeCompatibilityAttribute.cs
- SQLDoubleStorage.cs
- PassportIdentity.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- UnionCodeGroup.cs
- Converter.cs
- MultipartIdentifier.cs
- DispatcherFrame.cs
- ScalarOps.cs
- InputScopeAttribute.cs
- ListChunk.cs
- ActionNotSupportedException.cs
- Registry.cs
- CodeIdentifiers.cs
- BuiltInPermissionSets.cs
- DummyDataSource.cs
- MergePropertyDescriptor.cs
- DispatchProxy.cs
- MessageSecurityOverMsmqElement.cs
- Control.cs
- RelationshipConverter.cs
- MultipartIdentifier.cs
- Stream.cs
- MappedMetaModel.cs
- SpeechRecognitionEngine.cs
- DataViewManagerListItemTypeDescriptor.cs
- ToolStripGrip.cs
- GridViewUpdatedEventArgs.cs
- BindingSource.cs
- TextTreeDeleteContentUndoUnit.cs
- NavigationProperty.cs
- COAUTHINFO.cs
- HttpApplicationFactory.cs
- ExpressionHelper.cs
- LinqToSqlWrapper.cs
- MissingManifestResourceException.cs
- Convert.cs
- Parameter.cs
- SocketException.cs
- ControlDesigner.cs
- TreeNodeMouseHoverEvent.cs
- EdmSchemaAttribute.cs
- ExceptionUtil.cs
- BackStopAuthenticationModule.cs
- DataSysAttribute.cs
- SqlTopReducer.cs
- Quaternion.cs
- SHA512.cs
- EmissiveMaterial.cs
- SiteMapPath.cs
- CfgSemanticTag.cs
- DBCommandBuilder.cs
- ConfigXmlElement.cs
- SerTrace.cs
- Axis.cs
- PartialCachingControl.cs
- mediapermission.cs
- ApplicationException.cs
- TextDecoration.cs
- InputDevice.cs
- EntityDataSourceWrapperCollection.cs
- SqlDataSourceView.cs
- TextFormatterHost.cs
- RankException.cs
- ColumnMapTranslator.cs
- DataServiceContext.cs
- SessionStateSection.cs
- RectConverter.cs
- RayMeshGeometry3DHitTestResult.cs
- BamlResourceSerializer.cs
- PreviewKeyDownEventArgs.cs
- StreamingContext.cs
- RegexMatchCollection.cs
- CommentGlyph.cs
- PersonalizationAdministration.cs
- HttpDebugHandler.cs
- DataError.cs
- FlowNode.cs
- TagPrefixCollection.cs
- AutomationProperties.cs
- _ScatterGatherBuffers.cs
- CheckBox.cs
- MatrixAnimationUsingPath.cs
- Ref.cs
- OrderedDictionaryStateHelper.cs
- ContextStaticAttribute.cs
- UriPrefixTable.cs
- HyperLinkStyle.cs
- EntryPointNotFoundException.cs
- RelatedCurrencyManager.cs
- BulletedListDesigner.cs