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
- PagePropertiesChangingEventArgs.cs
- DataGridRow.cs
- GlyphInfoList.cs
- SqlParameterCollection.cs
- XmlSchemaObjectTable.cs
- AdPostCacheSubstitution.cs
- CultureSpecificCharacterBufferRange.cs
- ListViewAutomationPeer.cs
- SafeNativeMethods.cs
- RelatedView.cs
- WindowsComboBox.cs
- unsafenativemethodstextservices.cs
- SelectorItemAutomationPeer.cs
- BuildResult.cs
- NetSectionGroup.cs
- BulletDecorator.cs
- ReaderOutput.cs
- ImpersonateTokenRef.cs
- ZipPackage.cs
- AttributeParameterInfo.cs
- ReferenceService.cs
- ConstraintCollection.cs
- SQLDateTime.cs
- SwitchCase.cs
- InvalidProgramException.cs
- SeparatorAutomationPeer.cs
- FamilyMap.cs
- OdbcError.cs
- ItemCollection.cs
- SessionParameter.cs
- SecurityRuntime.cs
- DPTypeDescriptorContext.cs
- MouseBinding.cs
- SqlBuffer.cs
- DataGridCaption.cs
- StylusCollection.cs
- PasswordRecoveryDesigner.cs
- ITextView.cs
- RightsController.cs
- indexingfiltermarshaler.cs
- ConstraintEnumerator.cs
- ImageFormat.cs
- CacheEntry.cs
- ObjectQueryProvider.cs
- TextEditor.cs
- ButtonBaseAdapter.cs
- EqualityArray.cs
- CollectionViewGroup.cs
- EmbeddedObject.cs
- GridViewEditEventArgs.cs
- CompressedStack.cs
- XhtmlCssHandler.cs
- SqlWorkflowInstanceStore.cs
- FunctionImportMapping.cs
- BuildProvider.cs
- VisualStateGroup.cs
- PreloadedPackages.cs
- SQLDouble.cs
- RIPEMD160Managed.cs
- EventSinkHelperWriter.cs
- HighlightComponent.cs
- AliasedSlot.cs
- WebSysDefaultValueAttribute.cs
- PropertyToken.cs
- IndexedWhereQueryOperator.cs
- MergeFilterQuery.cs
- UnknownWrapper.cs
- ThumbAutomationPeer.cs
- TypeConverterHelper.cs
- HMACSHA512.cs
- SeverityFilter.cs
- NativeObjectSecurity.cs
- PtsContext.cs
- SchemaObjectWriter.cs
- HashLookup.cs
- HtmlControl.cs
- CodeIdentifiers.cs
- NativeMethodsCLR.cs
- ErrorTableItemStyle.cs
- PropertyItem.cs
- TreeNodeStyleCollection.cs
- ItemList.cs
- TreeViewImageKeyConverter.cs
- PointKeyFrameCollection.cs
- DrawingContextWalker.cs
- ConnectionManagementSection.cs
- ValidatorCompatibilityHelper.cs
- BmpBitmapEncoder.cs
- PropertyIDSet.cs
- FaultDesigner.cs
- ScriptDescriptor.cs
- RoleManagerSection.cs
- ThicknessAnimation.cs
- BuildResult.cs
- DictionaryEntry.cs
- safesecurityhelperavalon.cs
- AppSettingsReader.cs
- PartitionerQueryOperator.cs
- HtmlTextArea.cs
- MaskDescriptor.cs