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
- GetLedgerRequest.cs
- MimeTypeAttribute.cs
- Token.cs
- arc.cs
- TabControlEvent.cs
- OdbcCommandBuilder.cs
- ListViewPagedDataSource.cs
- EventItfInfo.cs
- XmlMembersMapping.cs
- FeatureSupport.cs
- SqlNodeAnnotation.cs
- LicFileLicenseProvider.cs
- AssemblyAssociatedContentFileAttribute.cs
- ComponentEditorPage.cs
- XPathNode.cs
- SQLDateTimeStorage.cs
- ResourceDictionary.cs
- DesignConnection.cs
- Transform.cs
- TypeConverter.cs
- ContextMenu.cs
- RtType.cs
- MobileControlPersister.cs
- mediaeventshelper.cs
- CustomErrorsSection.cs
- ReservationNotFoundException.cs
- ObjectAnimationUsingKeyFrames.cs
- SchemaLookupTable.cs
- MDIClient.cs
- CurrentTimeZone.cs
- TemporaryBitmapFile.cs
- assemblycache.cs
- DrawListViewColumnHeaderEventArgs.cs
- MetafileHeader.cs
- WebPartsSection.cs
- ItemList.cs
- BrowserCapabilitiesFactory.cs
- RequestCachingSection.cs
- Int64.cs
- EntityDataSourceWizardForm.cs
- TdsRecordBufferSetter.cs
- VSDExceptions.cs
- TCPClient.cs
- EventRecordWrittenEventArgs.cs
- DependentList.cs
- MailWebEventProvider.cs
- AutoGeneratedField.cs
- Image.cs
- AspNetCacheProfileAttribute.cs
- SqlBulkCopy.cs
- XamlGridLengthSerializer.cs
- UIPropertyMetadata.cs
- AddressingProperty.cs
- Interfaces.cs
- MultipartIdentifier.cs
- GraphicsPath.cs
- DataGridViewImageColumn.cs
- MatrixTransform3D.cs
- ReliableChannelFactory.cs
- OdbcParameterCollection.cs
- FontFamilyConverter.cs
- _AcceptOverlappedAsyncResult.cs
- DataColumnCollection.cs
- ImageMap.cs
- LinkUtilities.cs
- WasHostedComPlusFactory.cs
- DescendantOverDescendantQuery.cs
- ClientEndpointLoader.cs
- RTTypeWrapper.cs
- PlacementWorkspace.cs
- StyleCollectionEditor.cs
- TraceUtils.cs
- ParameterToken.cs
- OleDbError.cs
- SaveFileDialog.cs
- UriPrefixTable.cs
- ScriptingProfileServiceSection.cs
- GetChildSubtree.cs
- ProfilePropertySettings.cs
- HandleCollector.cs
- TypeProvider.cs
- OdbcEnvironmentHandle.cs
- SafeLocalMemHandle.cs
- DescendantOverDescendantQuery.cs
- OutputCacheModule.cs
- EditorPartChrome.cs
- TaskSchedulerException.cs
- OutOfProcStateClientManager.cs
- EventLogTraceListener.cs
- Control.cs
- ObjectStateManagerMetadata.cs
- AssertSection.cs
- DBBindings.cs
- AsymmetricSignatureFormatter.cs
- Int64AnimationUsingKeyFrames.cs
- NumericUpDownAccelerationCollection.cs
- SqlParameterizer.cs
- RangeBase.cs
- WarningException.cs
- DynamicUpdateCommand.cs