Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / WinFormsIntegration / System / Windows / Integration / ElementHostAutomationPeer.cs / 1 / ElementHostAutomationPeer.cs
using System.Windows.Automation.Peers;
namespace System.Windows.Forms.Integration
{
internal class ElementHostAutomationPeer : FrameworkElementAutomationPeer
{
private AvalonAdapter _owner;
public ElementHostAutomationPeer(AvalonAdapter owner)
: base(owner)
{
_owner = owner;
}
protected override bool IsContentElementCore()
{
return false;
}
protected override bool IsControlElementCore()
{
return false;
}
protected override string GetNameCore()
{
return _owner.Name;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System.Windows.Automation.Peers;
namespace System.Windows.Forms.Integration
{
internal class ElementHostAutomationPeer : FrameworkElementAutomationPeer
{
private AvalonAdapter _owner;
public ElementHostAutomationPeer(AvalonAdapter owner)
: base(owner)
{
_owner = owner;
}
protected override bool IsContentElementCore()
{
return false;
}
protected override bool IsControlElementCore()
{
return false;
}
protected override string GetNameCore()
{
return _owner.Name;
}
}
}
// 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
- GridViewCancelEditEventArgs.cs
- GroupByExpressionRewriter.cs
- ConnectionConsumerAttribute.cs
- InvalidOperationException.cs
- ActivationServices.cs
- Inflater.cs
- SoapElementAttribute.cs
- PreservationFileReader.cs
- TreeNodeCollection.cs
- X509Certificate.cs
- QuaternionAnimation.cs
- EncryptedReference.cs
- RuntimeHelpers.cs
- EmptyStringExpandableObjectConverter.cs
- HMAC.cs
- LicenseException.cs
- ScrollChrome.cs
- RepeaterItemCollection.cs
- QilInvokeLateBound.cs
- AndCondition.cs
- SectionInformation.cs
- ConfigurationPermission.cs
- CodeObjectCreateExpression.cs
- RenderContext.cs
- ConfigurationPermission.cs
- NetworkInterface.cs
- XmlReaderSettings.cs
- PropertyDescriptorGridEntry.cs
- XmlBaseReader.cs
- DivideByZeroException.cs
- AsymmetricCryptoHandle.cs
- XmlSchemaException.cs
- QilReplaceVisitor.cs
- MobilePage.cs
- Asn1IntegerConverter.cs
- XmlEventCache.cs
- HttpCachePolicy.cs
- AsyncSerializedWorker.cs
- Constraint.cs
- HWStack.cs
- UnsafeNativeMethodsTablet.cs
- SelectorAutomationPeer.cs
- Encoder.cs
- DependencyObjectPropertyDescriptor.cs
- XmlILModule.cs
- BuildManager.cs
- TemplateControlBuildProvider.cs
- StylusPlugin.cs
- XmlSignatureManifest.cs
- XmlSchemaValidator.cs
- AttributeTableBuilder.cs
- XmlSchemaComplexContentRestriction.cs
- SeparatorAutomationPeer.cs
- DefaultProxySection.cs
- RequestUriProcessor.cs
- FormViewCommandEventArgs.cs
- MethodExpr.cs
- Quaternion.cs
- TextBlockAutomationPeer.cs
- PackageStore.cs
- DocumentGridPage.cs
- StorageEntityContainerMapping.cs
- TypeSchema.cs
- Help.cs
- CacheAxisQuery.cs
- GenericAuthenticationEventArgs.cs
- SmtpNtlmAuthenticationModule.cs
- NonParentingControl.cs
- PartialCachingAttribute.cs
- InvalidAsynchronousStateException.cs
- UserControlDesigner.cs
- ToolStripProgressBar.cs
- DataGridColumnReorderingEventArgs.cs
- StorageEntityTypeMapping.cs
- IdentifierElement.cs
- WebPartConnectionCollection.cs
- InvalidDataContractException.cs
- VisualProxy.cs
- DoubleLinkListEnumerator.cs
- StorageAssociationTypeMapping.cs
- SQLBinary.cs
- PointAnimationClockResource.cs
- EventLogConfiguration.cs
- XmlNodeChangedEventArgs.cs
- AnnotationMap.cs
- CroppedBitmap.cs
- FormsAuthenticationConfiguration.cs
- SourceFileInfo.cs
- XPathBinder.cs
- XmlSchemaValidationException.cs
- AutomationElement.cs
- RelationshipEndMember.cs
- UInt64Storage.cs
- AnnotationStore.cs
- DispatcherExceptionFilterEventArgs.cs
- WmlValidationSummaryAdapter.cs
- NumberFunctions.cs
- HelpProvider.cs
- DashStyle.cs
- ControlPropertyNameConverter.cs