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
- SchemaElement.cs
- TextBoxAutoCompleteSourceConverter.cs
- WindowsPrincipal.cs
- VectorCollection.cs
- DynamicResourceExtension.cs
- ApplicationHost.cs
- ToolStripContentPanel.cs
- XappLauncher.cs
- SqlWebEventProvider.cs
- AutomationAttributeInfo.cs
- WebFaultClientMessageInspector.cs
- RSAPKCS1SignatureFormatter.cs
- DoubleAnimationUsingPath.cs
- RepeaterItem.cs
- DocumentationServerProtocol.cs
- FixedTextBuilder.cs
- GridViewPageEventArgs.cs
- DataGridSortCommandEventArgs.cs
- SemaphoreSecurity.cs
- precedingquery.cs
- XmlLinkedNode.cs
- DeflateEmulationStream.cs
- TextFormatterHost.cs
- _ConnectionGroup.cs
- DataBoundControlAdapter.cs
- RTTrackingProfile.cs
- XPathSelfQuery.cs
- WebMessageEncodingElement.cs
- PropagatorResult.cs
- SiteMembershipCondition.cs
- DynamicResourceExtensionConverter.cs
- CombinedGeometry.cs
- DeferredBinaryDeserializerExtension.cs
- ApplicationDirectory.cs
- SuppressMessageAttribute.cs
- LinearQuaternionKeyFrame.cs
- ISFClipboardData.cs
- FrameworkElementAutomationPeer.cs
- OutputScopeManager.cs
- TreeIterator.cs
- UserInitiatedNavigationPermission.cs
- XPathScanner.cs
- _LazyAsyncResult.cs
- Group.cs
- SiteOfOriginContainer.cs
- TransportSecurityBindingElement.cs
- Calendar.cs
- ConfigurationException.cs
- CodeAttributeDeclarationCollection.cs
- SystemInfo.cs
- TypeInitializationException.cs
- XmlReader.cs
- ObjectQueryExecutionPlan.cs
- AnnotationHelper.cs
- TaskHelper.cs
- FunctionCommandText.cs
- PrivateFontCollection.cs
- BitmapCache.cs
- PreviewPageInfo.cs
- DataPagerCommandEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- Terminate.cs
- FileStream.cs
- ToolStripDesignerAvailabilityAttribute.cs
- TypeHelper.cs
- FilteredReadOnlyMetadataCollection.cs
- PreProcessInputEventArgs.cs
- OleDbDataReader.cs
- ToolStripDropDown.cs
- Menu.cs
- AuthenticationConfig.cs
- WindowHideOrCloseTracker.cs
- ColorTranslator.cs
- XmlAnyAttributeAttribute.cs
- PropertyRecord.cs
- CodeTypeConstructor.cs
- HtmlSelect.cs
- ScopelessEnumAttribute.cs
- ListViewGroup.cs
- XmlQueryType.cs
- RequiredAttributeAttribute.cs
- ComProxy.cs
- TypeListConverter.cs
- AggregateNode.cs
- VectorCollectionConverter.cs
- SmiTypedGetterSetter.cs
- QueryParameter.cs
- XmlFormatReaderGenerator.cs
- ActivityDesigner.cs
- TableItemPattern.cs
- TypeSystem.cs
- ColumnResizeAdorner.cs
- TagMapInfo.cs
- HttpCacheVary.cs
- MessageSmuggler.cs
- SafeEventLogReadHandle.cs
- MouseBinding.cs
- ButtonAutomationPeer.cs
- MultipleViewProviderWrapper.cs
- GridViewRowPresenter.cs