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
- NotifyParentPropertyAttribute.cs
- DataListItem.cs
- DefaultValueAttribute.cs
- SafeNativeMethodsOther.cs
- ConnectionPoint.cs
- SettingsProperty.cs
- PingReply.cs
- TemplateBaseAction.cs
- HttpHandlerAction.cs
- CodeStatementCollection.cs
- TransactionsSectionGroup.cs
- Cursor.cs
- SyndicationDeserializer.cs
- CalendarModeChangedEventArgs.cs
- EdmItemError.cs
- Function.cs
- Memoizer.cs
- Message.cs
- _ListenerAsyncResult.cs
- FilterableAttribute.cs
- TableLayoutPanel.cs
- TableCell.cs
- ScriptReference.cs
- TableChangeProcessor.cs
- RC2.cs
- CompilerGlobalScopeAttribute.cs
- ToolStripDropDownItemDesigner.cs
- TransformBlockRequest.cs
- ExpandedProjectionNode.cs
- PixelFormat.cs
- BasePattern.cs
- SqlDataSourceCache.cs
- DataGridViewAddColumnDialog.cs
- SerializationUtilities.cs
- SyndicationDeserializer.cs
- DbConnectionPool.cs
- contentDescriptor.cs
- SoapEnumAttribute.cs
- DataGridViewColumnDesigner.cs
- TreeNodeMouseHoverEvent.cs
- dsa.cs
- AssociationType.cs
- ScrollBar.cs
- XmlWriterTraceListener.cs
- TreeView.cs
- Message.cs
- Comparer.cs
- HtmlInputButton.cs
- BuildDependencySet.cs
- XsdBuilder.cs
- JoinGraph.cs
- Object.cs
- RegexInterpreter.cs
- RuleInfoComparer.cs
- DataTableMappingCollection.cs
- UpdateInfo.cs
- Globals.cs
- ParenthesizePropertyNameAttribute.cs
- XmlSchemaComplexContentRestriction.cs
- PngBitmapDecoder.cs
- Viewport3DAutomationPeer.cs
- UnsafeNativeMethods.cs
- Converter.cs
- PageTextBox.cs
- LinqToSqlWrapper.cs
- TabRenderer.cs
- AttributeEmitter.cs
- COM2PropertyBuilderUITypeEditor.cs
- PeerApplication.cs
- PrimarySelectionGlyph.cs
- RtfControls.cs
- OleDbFactory.cs
- PageThemeBuildProvider.cs
- TableLayoutPanel.cs
- DataRelation.cs
- QueryableDataSourceHelper.cs
- EditingMode.cs
- TokenBasedSetEnumerator.cs
- PointAnimationUsingKeyFrames.cs
- VBCodeProvider.cs
- ReadOnlyDataSourceView.cs
- BrushMappingModeValidation.cs
- HttpCacheVary.cs
- StreamGeometry.cs
- ProviderMetadataCachedInformation.cs
- SmtpFailedRecipientException.cs
- CellTreeNodeVisitors.cs
- BeginStoryboard.cs
- Bits.cs
- CapabilitiesState.cs
- Point3DValueSerializer.cs
- System.Data.OracleClient_BID.cs
- Sentence.cs
- CheckedListBox.cs
- SharedStatics.cs
- AspNetSynchronizationContext.cs
- NativeMethods.cs
- EndpointConfigContainer.cs
- BamlResourceSerializer.cs