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
- CellQuery.cs
- Viewport2DVisual3D.cs
- AssemblyCollection.cs
- Int16.cs
- RegistrationContext.cs
- MarginsConverter.cs
- DataTableReader.cs
- VisualBrush.cs
- ArgumentException.cs
- ControlTemplate.cs
- FunctionDescription.cs
- CompilerHelpers.cs
- XmlnsCompatibleWithAttribute.cs
- externdll.cs
- SchemaMapping.cs
- XmlMapping.cs
- VersionedStream.cs
- SchemaExporter.cs
- Timer.cs
- CommonDialog.cs
- TemplateBamlTreeBuilder.cs
- HtmlValidatorAdapter.cs
- Events.cs
- Pair.cs
- XmlDocumentType.cs
- DataControlField.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SimpleTextLine.cs
- DataGridViewImageCell.cs
- recordstatefactory.cs
- TextServicesCompartmentEventSink.cs
- FilterQueryOptionExpression.cs
- ListBox.cs
- Empty.cs
- EnumerableCollectionView.cs
- HighlightVisual.cs
- ParsedAttributeCollection.cs
- TextStore.cs
- AttachmentCollection.cs
- SoundPlayer.cs
- BaseResourcesBuildProvider.cs
- PropertyMappingExceptionEventArgs.cs
- DefaultTextStore.cs
- RadialGradientBrush.cs
- EntityDataSourceChangedEventArgs.cs
- TextOutput.cs
- XmlJsonWriter.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- ContentControl.cs
- SnapLine.cs
- DataSourceExpressionCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- XpsS0ValidatingLoader.cs
- DrawingAttributeSerializer.cs
- DataKey.cs
- _AutoWebProxyScriptEngine.cs
- ClassHandlersStore.cs
- ObjectStateEntryDbDataRecord.cs
- ConstraintEnumerator.cs
- WriteTimeStream.cs
- BrowsableAttribute.cs
- ProtocolsConfigurationEntry.cs
- ParagraphVisual.cs
- contentDescriptor.cs
- MSHTMLHostUtil.cs
- TransformedBitmap.cs
- FreezableOperations.cs
- IPHostEntry.cs
- NextPreviousPagerField.cs
- ObjectToModelValueConverter.cs
- HyperLinkColumn.cs
- XmlIgnoreAttribute.cs
- _AutoWebProxyScriptWrapper.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- UnionCodeGroup.cs
- CompareValidator.cs
- AccessViolationException.cs
- Calendar.cs
- TextTreeTextElementNode.cs
- InvalidContentTypeException.cs
- CheckBoxField.cs
- XmlComplianceUtil.cs
- basevalidator.cs
- MissingFieldException.cs
- ToolStripSplitStackLayout.cs
- DbProviderFactoriesConfigurationHandler.cs
- VectorCollectionValueSerializer.cs
- MultipleFilterMatchesException.cs
- OSFeature.cs
- InternalConfigRoot.cs
- ColumnHeaderConverter.cs
- ClientSettingsProvider.cs
- UTF32Encoding.cs
- ImpersonationContext.cs
- ToolBar.cs
- TdsParserStateObject.cs
- SRGSCompiler.cs
- TreeViewBindingsEditor.cs
- UnicodeEncoding.cs
- DataServiceQuery.cs