Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ProcessHostServerConfig.cs
- BridgeDataRecord.cs
- SettingsPropertyCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- SyntaxCheck.cs
- EncoderParameters.cs
- BasicDesignerLoader.cs
- GridToolTip.cs
- TypeRefElement.cs
- __ConsoleStream.cs
- Panel.cs
- WindowsSolidBrush.cs
- WebPartHeaderCloseVerb.cs
- CompoundFileIOPermission.cs
- LinkButton.cs
- DropShadowEffect.cs
- XmlLoader.cs
- BamlLocalizabilityResolver.cs
- MarkupWriter.cs
- ShapingWorkspace.cs
- DocumentXPathNavigator.cs
- MexHttpBindingElement.cs
- GeometryDrawing.cs
- CalendarData.cs
- SafeFileMapViewHandle.cs
- TypeToArgumentTypeConverter.cs
- ProcessThreadCollection.cs
- GrowingArray.cs
- FormView.cs
- MonthChangedEventArgs.cs
- RegisteredExpandoAttribute.cs
- DataControlLinkButton.cs
- XmlSchemaFacet.cs
- DocumentAutomationPeer.cs
- LinearGradientBrush.cs
- ComEventsInfo.cs
- InputLangChangeEvent.cs
- CodeDirectoryCompiler.cs
- EncoderExceptionFallback.cs
- GlyphInfoList.cs
- Journal.cs
- GetMemberBinder.cs
- ProfileSection.cs
- ConnectionStringSettings.cs
- ServiceDescriptions.cs
- AdvancedBindingPropertyDescriptor.cs
- DataGridToolTip.cs
- ClientTargetSection.cs
- StringArrayConverter.cs
- GeometryGroup.cs
- IisTraceWebEventProvider.cs
- ADMembershipProvider.cs
- Unit.cs
- HttpProfileBase.cs
- ServiceProviders.cs
- BindingsCollection.cs
- RangeContentEnumerator.cs
- RectangleGeometry.cs
- SqlReferenceCollection.cs
- ClassValidator.cs
- XmlDictionary.cs
- IisTraceListener.cs
- DataTemplate.cs
- VersionPair.cs
- TraceContextEventArgs.cs
- XmlSchemaExporter.cs
- PropertyGridView.cs
- Stylus.cs
- TraceListener.cs
- StaticContext.cs
- WebScriptEndpoint.cs
- SecurityTokenParametersEnumerable.cs
- XmlComment.cs
- KeyNameIdentifierClause.cs
- ListViewItem.cs
- GeneralTransform3DTo2DTo3D.cs
- CodeGen.cs
- UInt32Converter.cs
- SafeArrayRankMismatchException.cs
- MarkedHighlightComponent.cs
- OperatingSystem.cs
- UserPreferenceChangingEventArgs.cs
- HtmlImage.cs
- EdmPropertyAttribute.cs
- BindUriHelper.cs
- TraceEventCache.cs
- AtomicFile.cs
- StorageInfo.cs
- SystemWebSectionGroup.cs
- BlurBitmapEffect.cs
- QilExpression.cs
- HttpDictionary.cs
- SelectionPattern.cs
- Pool.cs
- RegexWriter.cs
- GestureRecognizer.cs
- DoWorkEventArgs.cs
- FileCodeGroup.cs
- FillErrorEventArgs.cs
- Operand.cs