Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Automation / Peers / TabControlAutomationPeer.cs / 1 / 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
- CodeAssignStatement.cs
- PageHandlerFactory.cs
- ControlBuilderAttribute.cs
- MsmqHostedTransportManager.cs
- FontFaceLayoutInfo.cs
- ViewStateModeByIdAttribute.cs
- Base64Decoder.cs
- SourceCollection.cs
- SequentialUshortCollection.cs
- DataGridBoundColumn.cs
- RadioButton.cs
- LongValidatorAttribute.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SynchronizationLockException.cs
- SqlInternalConnection.cs
- SystemPens.cs
- EditingContext.cs
- LogPolicy.cs
- HttpProtocolImporter.cs
- ZipIOExtraFieldElement.cs
- AppDomainResourcePerfCounters.cs
- BindingContext.cs
- SecurityException.cs
- BitmapDownload.cs
- LocationFactory.cs
- ConfigurationHelpers.cs
- CreateParams.cs
- UnsafeNativeMethods.cs
- EntityDataSourceMemberPath.cs
- IndexedSelectQueryOperator.cs
- PageAdapter.cs
- ObfuscationAttribute.cs
- UnitControl.cs
- System.Data_BID.cs
- FontCacheUtil.cs
- ExceptionUtil.cs
- MessageContractImporter.cs
- RequiredFieldValidator.cs
- AutomationProperty.cs
- XmlTypeAttribute.cs
- MenuItem.cs
- BlurBitmapEffect.cs
- OracleString.cs
- SqlStatistics.cs
- VirtualDirectoryMappingCollection.cs
- RefreshInfo.cs
- XamlStyleSerializer.cs
- TextTreeTextElementNode.cs
- FormattedTextSymbols.cs
- HttpRequest.cs
- CheckBoxField.cs
- DesigntimeLicenseContext.cs
- NameValueSectionHandler.cs
- BuildDependencySet.cs
- ValueUtilsSmi.cs
- XmlName.cs
- MultiSelectRootGridEntry.cs
- ByteAnimation.cs
- XmlDocument.cs
- UrlMappingCollection.cs
- Label.cs
- DelegateBodyWriter.cs
- OdbcRowUpdatingEvent.cs
- GeneralTransform.cs
- AttachedPropertiesService.cs
- TraceContextEventArgs.cs
- OutputWindow.cs
- PersonalizationStateQuery.cs
- MTConfigUtil.cs
- Hash.cs
- SetterBase.cs
- KeyFrames.cs
- ConstNode.cs
- WebServiceMethodData.cs
- UrlAuthorizationModule.cs
- _ListenerResponseStream.cs
- DbProviderFactory.cs
- XmlDeclaration.cs
- Math.cs
- HighlightComponent.cs
- EntityDataSourceValidationException.cs
- AsyncSerializedWorker.cs
- DataGridColumnHeader.cs
- ControlType.cs
- IntersectQueryOperator.cs
- EventLogLink.cs
- UInt64.cs
- DataGridViewCellMouseEventArgs.cs
- SpellerError.cs
- AnchoredBlock.cs
- SynchronizedPool.cs
- Helper.cs
- CommandArguments.cs
- ManagementPath.cs
- BaseParagraph.cs
- Inline.cs
- SQLInt64.cs
- ConstructorBuilder.cs
- SubMenuStyle.cs
- HotSpot.cs