Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / ContextMenuAutomationPeer.cs / 1305600 / ContextMenuAutomationPeer.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 ContextMenuAutomationPeer : FrameworkElementAutomationPeer
{
///
public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
{
}
///
override protected string GetClassNameCore()
{
return "ContextMenu";
}
///
override protected AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.Menu;
}
}
}
// 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 ContextMenuAutomationPeer : FrameworkElementAutomationPeer
{
///
public ContextMenuAutomationPeer(ContextMenu owner): base(owner)
{
}
///
override protected string GetClassNameCore()
{
return "ContextMenu";
}
///
override protected AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.Menu;
}
}
}
// 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
- updatecommandorderer.cs
- XmlSchemaCollection.cs
- FormParameter.cs
- GridViewCancelEditEventArgs.cs
- ExpressionBuilderCollection.cs
- Overlapped.cs
- CollectionViewGroupInternal.cs
- AstTree.cs
- VisualStyleInformation.cs
- ContextMenu.cs
- DeclaredTypeElement.cs
- XPathDocument.cs
- XPathNavigatorReader.cs
- AppearanceEditorPart.cs
- externdll.cs
- OnOperation.cs
- ObjectDataSourceDisposingEventArgs.cs
- StringUtil.cs
- XmlNamespaceMappingCollection.cs
- cache.cs
- SerializationException.cs
- ConnectionProviderAttribute.cs
- Int32Storage.cs
- XPathDescendantIterator.cs
- MasterPageBuildProvider.cs
- XmlSchemaSimpleContentRestriction.cs
- Adorner.cs
- Camera.cs
- NamespaceInfo.cs
- ContainerTracking.cs
- BindingListCollectionView.cs
- HttpWriter.cs
- SerializationUtility.cs
- UserControl.cs
- BitmapEditor.cs
- SiteMapDataSource.cs
- StyleCollectionEditor.cs
- HyperlinkAutomationPeer.cs
- ChtmlTextBoxAdapter.cs
- SByte.cs
- PointLightBase.cs
- SplashScreenNativeMethods.cs
- InvalidFilterCriteriaException.cs
- SqlClientPermission.cs
- SqlTrackingQuery.cs
- xdrvalidator.cs
- HyperLinkStyle.cs
- ProfileSection.cs
- UnionExpr.cs
- DataControlCommands.cs
- Visual3D.cs
- ListGeneralPage.cs
- ToolStripOverflowButton.cs
- ArglessEventHandlerProxy.cs
- ExpressionVisitor.cs
- FileRecordSequence.cs
- PathData.cs
- CacheRequest.cs
- FigureParaClient.cs
- TrustExchangeException.cs
- WebPartZone.cs
- PresentationSource.cs
- TdsParserHelperClasses.cs
- ControlLocalizer.cs
- AssemblyNameProxy.cs
- CallbackHandler.cs
- LinqDataSourceValidationException.cs
- ExecutionContext.cs
- Line.cs
- SuppressMessageAttribute.cs
- VolatileEnlistmentState.cs
- AutomationIdentifierGuids.cs
- OracleConnectionFactory.cs
- XmlDomTextWriter.cs
- PropertySet.cs
- HwndSourceKeyboardInputSite.cs
- SafeArrayRankMismatchException.cs
- DbCommandTree.cs
- SqlTriggerContext.cs
- UpdatePanelControlTrigger.cs
- CustomErrorsSectionWrapper.cs
- DetailsView.cs
- ResourceExpressionBuilder.cs
- ObjectListTitleAttribute.cs
- MarkupProperty.cs
- SmiTypedGetterSetter.cs
- WindowsEditBoxRange.cs
- WebPartConnectionsCancelVerb.cs
- MethodRental.cs
- LookupBindingPropertiesAttribute.cs
- Graphics.cs
- RequestCachingSection.cs
- ScriptModule.cs
- Sql8ExpressionRewriter.cs
- mactripleDES.cs
- DiscoveryServerProtocol.cs
- WebPageTraceListener.cs
- FormsAuthentication.cs
- ResXDataNode.cs
- WebPartDisplayMode.cs