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
- MethodImplAttribute.cs
- FlowDocumentPage.cs
- RefType.cs
- xamlnodes.cs
- XmlTextReaderImpl.cs
- AutoGeneratedField.cs
- ProcessModelSection.cs
- SimpleRecyclingCache.cs
- IFlowDocumentViewer.cs
- NegatedCellConstant.cs
- StandardCommands.cs
- TransformPattern.cs
- DetailsViewDeletedEventArgs.cs
- SafeLibraryHandle.cs
- SID.cs
- JournalNavigationScope.cs
- SmtpSection.cs
- EnumBuilder.cs
- Int64Animation.cs
- FrugalList.cs
- ToolBarButtonClickEvent.cs
- GroupLabel.cs
- LinqDataView.cs
- Double.cs
- WinEventHandler.cs
- WebPartTransformerAttribute.cs
- SplitterPanel.cs
- NavigatingCancelEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SimpleTableProvider.cs
- DataKey.cs
- JsonDataContract.cs
- CommonRemoteMemoryBlock.cs
- HeaderUtility.cs
- HashAlgorithm.cs
- KeyMatchBuilder.cs
- SizeConverter.cs
- FixedHighlight.cs
- StylusTip.cs
- DoubleAnimation.cs
- OdbcReferenceCollection.cs
- TraceHandlerErrorFormatter.cs
- XmlSchemaValidator.cs
- WorkflowFormatterBehavior.cs
- PlainXmlDeserializer.cs
- CustomDictionarySources.cs
- SynchronizingStream.cs
- HashCodeCombiner.cs
- CapabilitiesState.cs
- Parser.cs
- DynamicRouteExpression.cs
- ResXBuildProvider.cs
- SmiEventSink.cs
- CalculatedColumn.cs
- TemplateControlParser.cs
- ErrorRuntimeConfig.cs
- UInt16Converter.cs
- HelpKeywordAttribute.cs
- SoapSchemaMember.cs
- LiteralTextContainerControlBuilder.cs
- mediaeventshelper.cs
- UpdateRecord.cs
- LateBoundBitmapDecoder.cs
- XmlObjectSerializerContext.cs
- _SpnDictionary.cs
- ValueTypeFixupInfo.cs
- FileVersion.cs
- HashHelper.cs
- Figure.cs
- ScrollPattern.cs
- DocumentOrderComparer.cs
- IDataContractSurrogate.cs
- CharacterHit.cs
- COM2PropertyPageUITypeConverter.cs
- BitmapEditor.cs
- SoapSchemaExporter.cs
- Instrumentation.cs
- DeflateStreamAsyncResult.cs
- documentsequencetextview.cs
- PinProtectionHelper.cs
- WebPartTracker.cs
- WebControlsSection.cs
- MetadataException.cs
- FontResourceCache.cs
- WebScriptServiceHostFactory.cs
- GuidTagList.cs
- ExpressionCopier.cs
- TransactionFlowBindingElement.cs
- ProfileSettings.cs
- HybridWebProxyFinder.cs
- UnionExpr.cs
- Sentence.cs
- AQNBuilder.cs
- EmptyEnumerator.cs
- shaperfactoryquerycacheentry.cs
- SqlConnectionString.cs
- CanExecuteRoutedEventArgs.cs
- VoiceSynthesis.cs
- SubMenuStyleCollectionEditor.cs
- DesignTimeXamlWriter.cs