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
- ObjectDataSourceEventArgs.cs
- AtomServiceDocumentSerializer.cs
- Label.cs
- BuilderElements.cs
- RoleGroupCollection.cs
- LockCookie.cs
- Utils.cs
- EmptyElement.cs
- Hashtable.cs
- UndirectedGraph.cs
- SoapEnumAttribute.cs
- ResourceContainerWrapper.cs
- DataGridLinkButton.cs
- FlowDocumentPaginator.cs
- DeviceOverridableAttribute.cs
- DetailsViewRowCollection.cs
- ObjRef.cs
- PropertyStore.cs
- SqlDataSourceCommandParser.cs
- localization.cs
- SurrogateDataContract.cs
- LocalIdCollection.cs
- FlowNode.cs
- Property.cs
- AnnotationAdorner.cs
- StickyNoteHelper.cs
- BitmapMetadataEnumerator.cs
- BindingSourceDesigner.cs
- DateTimeOffsetStorage.cs
- PerformanceCountersElement.cs
- CodeStatementCollection.cs
- ApplicationSecurityInfo.cs
- SourceItem.cs
- PageContent.cs
- MulticastNotSupportedException.cs
- BindingWorker.cs
- FrameworkTemplate.cs
- objectquery_tresulttype.cs
- BitmapEffectvisualstate.cs
- UseAttributeSetsAction.cs
- WSSecurityXXX2005.cs
- StreamAsIStream.cs
- GregorianCalendarHelper.cs
- BrowserDefinitionCollection.cs
- DoubleAnimationUsingPath.cs
- RuntimeWrappedException.cs
- BindingBase.cs
- TextServicesDisplayAttributePropertyRanges.cs
- BitmapEffectInput.cs
- CommonGetThemePartSize.cs
- DataTableReader.cs
- FontStretches.cs
- FileInfo.cs
- SoapFault.cs
- MimeMapping.cs
- ModuleConfigurationInfo.cs
- AbstractSvcMapFileLoader.cs
- CodeLinePragma.cs
- OdbcException.cs
- TextBoxAutoCompleteSourceConverter.cs
- ValidationResult.cs
- HtmlEncodedRawTextWriter.cs
- ListBindingConverter.cs
- CqlGenerator.cs
- SqlParameterizer.cs
- TCEAdapterGenerator.cs
- StatusBarDrawItemEvent.cs
- LinkArea.cs
- Line.cs
- AppDomainGrammarProxy.cs
- WindowsStartMenu.cs
- ButtonBase.cs
- TypeConverterHelper.cs
- ZipFileInfo.cs
- AlgoModule.cs
- ObjRef.cs
- CodeDOMProvider.cs
- Multiply.cs
- DbConnectionPoolOptions.cs
- RC2CryptoServiceProvider.cs
- HtmlAnchor.cs
- HyperLinkDataBindingHandler.cs
- PagesSection.cs
- RadioButtonStandardAdapter.cs
- PlaceHolder.cs
- WebPartUserCapability.cs
- Evaluator.cs
- MenuCommands.cs
- XmlFormatReaderGenerator.cs
- PipelineComponent.cs
- DependencyObjectProvider.cs
- DataGridViewRowCancelEventArgs.cs
- SystemTcpStatistics.cs
- ObjectToken.cs
- SourceFileInfo.cs
- SafeRegistryHandle.cs
- TextContainerChangedEventArgs.cs
- SoapIgnoreAttribute.cs
- MetadataWorkspace.cs
- PasswordRecovery.cs