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
- SchemaImporterExtensionElementCollection.cs
- PropertyTabChangedEvent.cs
- HttpProcessUtility.cs
- DataGridViewButtonCell.cs
- ReadOnlyDataSourceView.cs
- CheckBoxField.cs
- SafeHandle.cs
- MergeExecutor.cs
- SamlEvidence.cs
- IdentitySection.cs
- Attributes.cs
- FontInfo.cs
- ScalarConstant.cs
- SettingsProperty.cs
- BitmapEffectInputConnector.cs
- XPathCompileException.cs
- DocumentViewerBase.cs
- Matrix3DValueSerializer.cs
- BaseProcessor.cs
- DeploymentSection.cs
- SelectionWordBreaker.cs
- ReflectEventDescriptor.cs
- WebEventTraceProvider.cs
- ExpandSegmentCollection.cs
- UrlParameterReader.cs
- SimpleApplicationHost.cs
- LoginCancelEventArgs.cs
- Container.cs
- DataGridViewColumnDesigner.cs
- ObjectQuery_EntitySqlExtensions.cs
- ObjectTokenCategory.cs
- BaseResourcesBuildProvider.cs
- CommonGetThemePartSize.cs
- TracingConnection.cs
- TemplateColumn.cs
- GenericRootAutomationPeer.cs
- InvalidComObjectException.cs
- InlineCollection.cs
- FormsAuthenticationConfiguration.cs
- SatelliteContractVersionAttribute.cs
- SpeechSynthesizer.cs
- SafeEventLogWriteHandle.cs
- CallbackBehaviorAttribute.cs
- DoubleLink.cs
- DynamicValueConverter.cs
- FlowNode.cs
- CompilerGeneratedAttribute.cs
- AsymmetricSecurityBindingElement.cs
- oledbconnectionstring.cs
- XmlNodeComparer.cs
- TrackingRecord.cs
- AsyncOperationLifetimeManager.cs
- XmlValueConverter.cs
- SafeNativeMethods.cs
- RegexStringValidator.cs
- WrapPanel.cs
- RijndaelManaged.cs
- BitFlagsGenerator.cs
- RegexCharClass.cs
- returneventsaver.cs
- PtsPage.cs
- EntitySqlQueryCacheKey.cs
- DropShadowBitmapEffect.cs
- PowerStatus.cs
- MulticastOption.cs
- Model3D.cs
- TextAutomationPeer.cs
- CssStyleCollection.cs
- InkCanvas.cs
- XmlDocumentType.cs
- RemoveStoryboard.cs
- SecurityState.cs
- Utility.cs
- ObjectSecurity.cs
- Debug.cs
- HyperlinkAutomationPeer.cs
- BinaryUtilClasses.cs
- DbProviderConfigurationHandler.cs
- ItemChangedEventArgs.cs
- IntegerFacetDescriptionElement.cs
- UTF32Encoding.cs
- XPathArrayIterator.cs
- EventRoute.cs
- XmlSchemaSimpleTypeList.cs
- Brushes.cs
- ChtmlImageAdapter.cs
- Utility.cs
- WindowsFont.cs
- File.cs
- LambdaCompiler.cs
- SchemaTableOptionalColumn.cs
- GCHandleCookieTable.cs
- TextHintingModeValidation.cs
- CodeVariableReferenceExpression.cs
- XhtmlTextWriter.cs
- Bind.cs
- Utils.cs
- SqlIdentifier.cs
- WindowsFormsSynchronizationContext.cs
- ObjectTag.cs