Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ReadOnlyDictionary.cs
- XmlSchemaObjectTable.cs
- XmlSchemaAnyAttribute.cs
- RadioButton.cs
- SortDescriptionCollection.cs
- ValueUtilsSmi.cs
- PathTooLongException.cs
- DoubleUtil.cs
- XmlIncludeAttribute.cs
- PropertyTabChangedEvent.cs
- XPathCompileException.cs
- UnsafeNativeMethods.cs
- Empty.cs
- SingleObjectCollection.cs
- SecurityHeader.cs
- DefaultSettingsSection.cs
- NavigationWindowAutomationPeer.cs
- DragEvent.cs
- NegationPusher.cs
- Parser.cs
- PeerDuplexChannelListener.cs
- PeerDefaultCustomResolverClient.cs
- EventTrigger.cs
- NestedContainer.cs
- SamlAuthenticationClaimResource.cs
- QueryReaderSettings.cs
- HyperLinkField.cs
- NativeMethods.cs
- DataGridViewRowsRemovedEventArgs.cs
- HitTestWithGeometryDrawingContextWalker.cs
- NamedElement.cs
- PropertyNames.cs
- HttpCookieCollection.cs
- GACIdentityPermission.cs
- EntryPointNotFoundException.cs
- UriParserTemplates.cs
- TextServicesManager.cs
- ZoneIdentityPermission.cs
- GridEntry.cs
- TemplateContainer.cs
- XPathNodeList.cs
- UpdateRecord.cs
- ReadOnlyCollectionBase.cs
- ServiceDiscoveryBehavior.cs
- EvidenceTypeDescriptor.cs
- UserPreferenceChangingEventArgs.cs
- MultipartContentParser.cs
- RestHandlerFactory.cs
- MatrixAnimationUsingKeyFrames.cs
- RegexBoyerMoore.cs
- DesignerAttributeInfo.cs
- SynchronousChannelMergeEnumerator.cs
- XmlImplementation.cs
- _UriTypeConverter.cs
- TextBoxAutomationPeer.cs
- IOThreadScheduler.cs
- WMIInterop.cs
- XmlRawWriter.cs
- SqlDataSourceCache.cs
- IImplicitResourceProvider.cs
- GenericTypeParameterBuilder.cs
- XmlWrappingReader.cs
- IconConverter.cs
- ColorTranslator.cs
- StringDictionaryWithComparer.cs
- VectorCollection.cs
- DbDataAdapter.cs
- Brush.cs
- ActiveDocumentEvent.cs
- ToolStripDropDownClosingEventArgs.cs
- _TransmitFileOverlappedAsyncResult.cs
- ValueTable.cs
- DataGridViewCellFormattingEventArgs.cs
- SHA256Managed.cs
- XmlJsonWriter.cs
- RawStylusActions.cs
- LinkDescriptor.cs
- ValueSerializerAttribute.cs
- WebPartZoneBase.cs
- ChameleonKey.cs
- SessionStateSection.cs
- StringBuilder.cs
- RegistryKey.cs
- NativeActivityTransactionContext.cs
- SqlCacheDependency.cs
- CanExecuteRoutedEventArgs.cs
- WebConfigurationHostFileChange.cs
- BufferedGraphicsManager.cs
- Stream.cs
- SafeReadContext.cs
- IERequestCache.cs
- TableLayout.cs
- ElementMarkupObject.cs
- XmlILStorageConverter.cs
- RepeatBehaviorConverter.cs
- MenuRendererClassic.cs
- AuthenticationSection.cs
- NonBatchDirectoryCompiler.cs
- OracleParameterCollection.cs
- ChangeConflicts.cs