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
- Int32Converter.cs
- TypeSemantics.cs
- DateTimeFormatInfoScanner.cs
- HyperLinkColumn.cs
- DurableTimerExtension.cs
- TableCellsCollectionEditor.cs
- SafeThemeHandle.cs
- DoubleAnimationUsingPath.cs
- Trustee.cs
- ZoneLinkButton.cs
- EntityClientCacheKey.cs
- OutputCacheSettings.cs
- HttpModuleActionCollection.cs
- X509SecurityTokenProvider.cs
- ProxySimple.cs
- GroupBox.cs
- DataGridItemEventArgs.cs
- DEREncoding.cs
- ParserContext.cs
- Cursor.cs
- StyleCollectionEditor.cs
- ObjectToIdCache.cs
- WhitespaceRule.cs
- XmlSchemaGroup.cs
- InstanceDescriptor.cs
- FrameworkElement.cs
- ExpressionParser.cs
- Color.cs
- _LocalDataStoreMgr.cs
- DataGridViewRowHeaderCell.cs
- WinEventQueueItem.cs
- UnsafeNativeMethods.cs
- PassportAuthenticationEventArgs.cs
- webclient.cs
- SimpleWebHandlerParser.cs
- ListSortDescriptionCollection.cs
- LineMetrics.cs
- SymmetricKeyWrap.cs
- ImmComposition.cs
- PersianCalendar.cs
- DbParameterCollectionHelper.cs
- StylusPointProperties.cs
- ReadingWritingEntityEventArgs.cs
- __TransparentProxy.cs
- RightsManagementEncryptionTransform.cs
- Nullable.cs
- EmissiveMaterial.cs
- ScrollViewer.cs
- CommandConverter.cs
- DataPagerFieldCollection.cs
- DefaultTraceListener.cs
- ApplicationDirectory.cs
- DoubleCollectionConverter.cs
- ExeContext.cs
- ICollection.cs
- SHA1Managed.cs
- MasterPage.cs
- ApplicationManager.cs
- CatalogPartCollection.cs
- ServiceOperationWrapper.cs
- SQLInt64Storage.cs
- WorkflowIdleBehavior.cs
- TextTreeNode.cs
- ReachPrintTicketSerializerAsync.cs
- DbException.cs
- DataDocumentXPathNavigator.cs
- StreamBodyWriter.cs
- DefaultExpressionVisitor.cs
- WebServiceMethodData.cs
- FontInfo.cs
- SamlAuthenticationClaimResource.cs
- ListControl.cs
- SspiSecurityTokenParameters.cs
- ClientFormsAuthenticationCredentials.cs
- EndOfStreamException.cs
- Point.cs
- ToolStripManager.cs
- GenericEnumConverter.cs
- DataControlCommands.cs
- ContainerUtilities.cs
- EventLogLink.cs
- PolygonHotSpot.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SqlFacetAttribute.cs
- PermissionListSet.cs
- HttpCacheVaryByContentEncodings.cs
- NameValueCache.cs
- ReverseInheritProperty.cs
- BevelBitmapEffect.cs
- FrameworkContentElement.cs
- EventProxy.cs
- RequestBringIntoViewEventArgs.cs
- WpfKnownTypeInvoker.cs
- LineGeometry.cs
- KnownBoxes.cs
- SystemKeyConverter.cs
- BindingOperations.cs
- ListControlActionList.cs
- SqlTypeSystemProvider.cs
- CodeIdentifiers.cs