Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / HyperlinkAutomationPeer.cs / 1 / HyperlinkAutomationPeer.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: HyperlinkAutomationPeer.cs // // Description: Automation peer for hyperlink // //--------------------------------------------------------------------------- using System.Windows.Automation.Provider; // IRawElementProviderSimple using System.Windows.Documents; namespace System.Windows.Automation.Peers { /// public class HyperlinkAutomationPeer : TextElementAutomationPeer, IInvokeProvider { /// public HyperlinkAutomationPeer(Hyperlink owner) : base(owner) { } ////// /// /// ///public override object GetPattern(PatternInterface patternInterface) { if (patternInterface == PatternInterface.Invoke) { return this; } return null; } //Default Automation properties /// protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Hyperlink; } /// /// /// protected override string GetNameCore() { string name = base.GetNameCore(); if (name == string.Empty) { Hyperlink owner = (Hyperlink)Owner; name = owner.Text; if (name == null) name = string.Empty; } return name; } /// override protected string GetClassNameCore() { return "Hyperlink"; } ////// override protected bool IsControlElementCore() { return true; } //Invoke Pattern implementation void IInvokeProvider.Invoke() { if (!IsEnabled()) throw new ElementNotEnabledException(); Hyperlink owner = (Hyperlink)Owner; owner.DoClick(); } } } // 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
- WebServiceHandler.cs
- TypeUtils.cs
- CheckBoxStandardAdapter.cs
- BinaryReader.cs
- PointConverter.cs
- HttpModulesSection.cs
- CqlParserHelpers.cs
- BaseValidatorDesigner.cs
- WebPartMinimizeVerb.cs
- LabelLiteral.cs
- RC2CryptoServiceProvider.cs
- AppliedDeviceFiltersDialog.cs
- NavigationProperty.cs
- VerticalAlignConverter.cs
- FileVersion.cs
- ToolStripDropDownClosingEventArgs.cs
- _LazyAsyncResult.cs
- TypeUsage.cs
- CompositeControl.cs
- StateWorkerRequest.cs
- StopStoryboard.cs
- TdsValueSetter.cs
- FormCollection.cs
- FontStyle.cs
- PeerTransportSecurityElement.cs
- Util.cs
- MemoryRecordBuffer.cs
- DataGridViewRowPostPaintEventArgs.cs
- FontInfo.cs
- AuthenticationSection.cs
- QueryCacheEntry.cs
- DesignerTransaction.cs
- MethodBuilder.cs
- WindowsIdentity.cs
- __FastResourceComparer.cs
- DataSourceXmlAttributeAttribute.cs
- SqlDelegatedTransaction.cs
- ListBoxChrome.cs
- DataGridCommandEventArgs.cs
- HttpBufferlessInputStream.cs
- NullReferenceException.cs
- Region.cs
- UInt16Converter.cs
- PaintEvent.cs
- CannotUnloadAppDomainException.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- HandledEventArgs.cs
- ListItemConverter.cs
- XmlSchemaRedefine.cs
- ListComponentEditor.cs
- DrawingCollection.cs
- basecomparevalidator.cs
- GenericRootAutomationPeer.cs
- ScrollViewerAutomationPeer.cs
- QueryRewriter.cs
- DataTableClearEvent.cs
- Speller.cs
- DbgUtil.cs
- ViewStateAttachedPropertyFeature.cs
- PrincipalPermission.cs
- MetadataItemEmitter.cs
- OSEnvironmentHelper.cs
- HScrollBar.cs
- Msmq.cs
- Stroke2.cs
- RequestCache.cs
- WebResponse.cs
- TemplateParser.cs
- TextRange.cs
- __ConsoleStream.cs
- PeerCustomResolverSettings.cs
- XmlMtomWriter.cs
- EntityDataSourceWrapper.cs
- ButtonBase.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TypeExtensionConverter.cs
- DataListItem.cs
- DataGridComponentEditor.cs
- TypeSchema.cs
- HttpValueCollection.cs
- DefaultSection.cs
- XmlSchemaValidationException.cs
- Page.cs
- CompositeClientFormatter.cs
- WindowsEditBox.cs
- EmbeddedMailObject.cs
- CheckBoxBaseAdapter.cs
- SizeAnimationBase.cs
- VerificationException.cs
- CopyNamespacesAction.cs
- InstanceHandleReference.cs
- DesignTimeTemplateParser.cs
- PackageDigitalSignatureManager.cs
- NonClientArea.cs
- DependencyObject.cs
- GlyphTypeface.cs
- IChannel.cs
- ObjectSecurity.cs
- SqlConnectionPoolProviderInfo.cs
- KeyedHashAlgorithm.cs