Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / TabControlAutomationPeer.cs / 1305600 / TabControlAutomationPeer.cs
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class TabControlAutomationPeer : SelectorAutomationPeer, ISelectionProvider { /// public TabControlAutomationPeer(TabControl owner): base(owner) {} /// override protected ItemAutomationPeer CreateItemAutomationPeer(object item) { return new TabItemAutomationPeer(item, this); } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Tab; } /// override protected string GetClassNameCore() { return "TabControl"; } /// protected override Point GetClickablePointCore() { return new Point(double.NaN, double.NaN); } bool ISelectionProvider.IsSelectionRequired { get { return true; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class TabControlAutomationPeer : SelectorAutomationPeer, ISelectionProvider { /// public TabControlAutomationPeer(TabControl owner): base(owner) {} /// override protected ItemAutomationPeer CreateItemAutomationPeer(object item) { return new TabItemAutomationPeer(item, this); } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Tab; } /// override protected string GetClassNameCore() { return "TabControl"; } /// protected override Point GetClickablePointCore() { return new Point(double.NaN, double.NaN); } bool ISelectionProvider.IsSelectionRequired { get { return true; } } } } // 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
- XPathNodePointer.cs
- GetIsBrowserClientRequest.cs
- TCPListener.cs
- Int32Storage.cs
- RightsManagementInformation.cs
- CrossAppDomainChannel.cs
- lengthconverter.cs
- XhtmlTextWriter.cs
- DataSetMappper.cs
- WebBrowserProgressChangedEventHandler.cs
- ProviderConnectionPointCollection.cs
- TargetInvocationException.cs
- ClientType.cs
- Int32Converter.cs
- HtmlWindow.cs
- RecommendedAsConfigurableAttribute.cs
- WorkflowViewManager.cs
- PackageRelationshipCollection.cs
- ComponentDispatcherThread.cs
- ConnectionsZone.cs
- SqlNodeTypeOperators.cs
- XmlUtf8RawTextWriter.cs
- XmlTextWriter.cs
- SynchronizedDispatch.cs
- Range.cs
- CalendarDay.cs
- CompilerLocalReference.cs
- LongTypeConverter.cs
- GlobalizationSection.cs
- XPathParser.cs
- ToolStripRendererSwitcher.cs
- SettingsContext.cs
- RegistrySecurity.cs
- MediaPlayer.cs
- CodeArgumentReferenceExpression.cs
- WorkflowEventArgs.cs
- Rect.cs
- BaseTemplateParser.cs
- XPathNodeList.cs
- XmlDataLoader.cs
- DatatypeImplementation.cs
- HtmlControlPersistable.cs
- XmlName.cs
- TdsParser.cs
- SecurityTokenTypes.cs
- SocketManager.cs
- MULTI_QI.cs
- HttpCachePolicy.cs
- WindowsTokenRoleProvider.cs
- IPCCacheManager.cs
- SafeArchiveContext.cs
- Delay.cs
- HebrewCalendar.cs
- OdbcDataAdapter.cs
- ResourcePermissionBaseEntry.cs
- CacheOutputQuery.cs
- DisplayNameAttribute.cs
- MatrixIndependentAnimationStorage.cs
- ImageButton.cs
- ClientSession.cs
- FileLogRecordHeader.cs
- SoundPlayerAction.cs
- ToolStripRendererSwitcher.cs
- Directory.cs
- DurableInstance.cs
- XmlSchemaAny.cs
- Rotation3D.cs
- ManifestResourceInfo.cs
- SuppressMessageAttribute.cs
- DataObjectFieldAttribute.cs
- RecordBuilder.cs
- ShortcutKeysEditor.cs
- ByteStreamMessageEncodingElement.cs
- DateTimeFormatInfo.cs
- CacheMemory.cs
- MarkupCompilePass1.cs
- HyperLinkDataBindingHandler.cs
- HtmlTableCellCollection.cs
- StandardBindingCollectionElement.cs
- ScriptControl.cs
- HashRepartitionStream.cs
- SrgsElement.cs
- ExpressionBuilderContext.cs
- LinkButton.cs
- TransactionFlowBindingElement.cs
- FixedSOMLineRanges.cs
- BamlRecordHelper.cs
- FileDetails.cs
- XmlDomTextWriter.cs
- ProbeMatchesApril2005.cs
- TaskFileService.cs
- DefaultBinder.cs
- CounterCreationDataConverter.cs
- MaskedTextBoxDesigner.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- PtsHelper.cs
- MD5Cng.cs
- ConsumerConnectionPoint.cs
- TimeZone.cs
- ToolStripSplitStackLayout.cs