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
- AssociationEndMember.cs
- SchemaReference.cs
- DBPropSet.cs
- TextSpanModifier.cs
- HttpTransportElement.cs
- String.cs
- BindingContext.cs
- BrowserCapabilitiesFactoryBase.cs
- XamlTypeMapper.cs
- ProofTokenCryptoHandle.cs
- UserPrincipalNameElement.cs
- SByte.cs
- InProcStateClientManager.cs
- DocComment.cs
- HotCommands.cs
- ListViewTableRow.cs
- x509store.cs
- DataGridTable.cs
- XmlWrappingWriter.cs
- _RegBlobWebProxyDataBuilder.cs
- RubberbandSelector.cs
- InstanceKeyView.cs
- HMACSHA384.cs
- TcpSocketManager.cs
- LineServices.cs
- MSG.cs
- CachingHintValidation.cs
- ComUdtElementCollection.cs
- unitconverter.cs
- HtmlTableCellCollection.cs
- __ComObject.cs
- LineBreakRecord.cs
- Message.cs
- TypeUtil.cs
- RC2CryptoServiceProvider.cs
- XmlILStorageConverter.cs
- BreakSafeBase.cs
- ExpressionPrefixAttribute.cs
- ImpersonationContext.cs
- WindowsStartMenu.cs
- RenameRuleObjectDialog.Designer.cs
- BreakSafeBase.cs
- ControlPaint.cs
- ReadWriteObjectLock.cs
- SymDocumentType.cs
- TreeNode.cs
- XmlProcessingInstruction.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SerializerDescriptor.cs
- ScriptReferenceBase.cs
- AlternationConverter.cs
- EntityDataSourceEntityTypeFilterItem.cs
- LinkDescriptor.cs
- TextFragmentEngine.cs
- Stacktrace.cs
- ResourcePool.cs
- _BaseOverlappedAsyncResult.cs
- RequiredFieldValidator.cs
- AssemblyUtil.cs
- ScrollBar.cs
- ActiveXMessageFormatter.cs
- DesignerDataSchemaClass.cs
- DiscardableAttribute.cs
- HttpFileCollection.cs
- InsufficientMemoryException.cs
- MouseGestureValueSerializer.cs
- Choices.cs
- CodePageEncoding.cs
- ConfigurationErrorsException.cs
- ControlIdConverter.cs
- CompModSwitches.cs
- SchemaDeclBase.cs
- RuntimeHandles.cs
- WinInet.cs
- PropertyEmitterBase.cs
- SourceFileBuildProvider.cs
- SpecialNameAttribute.cs
- StructuralComparisons.cs
- Table.cs
- PropertyChangeTracker.cs
- Attributes.cs
- DataPointer.cs
- UshortList2.cs
- XsltSettings.cs
- CustomErrorsSection.cs
- HttpResponseWrapper.cs
- TreeNodeMouseHoverEvent.cs
- RowVisual.cs
- MenuItem.cs
- TemplateBamlRecordReader.cs
- AutomationElementIdentifiers.cs
- HostSecurityManager.cs
- Number.cs
- Slider.cs
- DrawingServices.cs
- HtmlTableRow.cs
- StylusEditingBehavior.cs
- PersianCalendar.cs
- CodeIterationStatement.cs
- ExpandedProjectionNode.cs