HyperlinkHelper 类

这主要用于的选件类在WPF 3.0的bug解决其中,因此,如果您在超链接的自定义命令,并尝试使用ApplicationCommands.Copy该链接,就会失败,因为它尝试序列化该自定义命令,它在源不允许的。解决办法是使用此选件类定义命令而不是Hyperlink.Command,但其他操作保持不变。

继承层次结构

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.DependencyObject
      Microsoft.TeamFoundation.Controls.WPF.HyperlinkHelper

命名空间:  Microsoft.TeamFoundation.Controls.WPF
程序集:  Microsoft.TeamFoundation.Controls(在 Microsoft.TeamFoundation.Controls.dll 中)

语法

声明
Public Class HyperlinkHelper _
    Inherits DependencyObject
public class HyperlinkHelper : DependencyObject

HyperlinkHelper 类型公开以下成员。

构造函数

  名称 说明
公共方法 HyperlinkHelper

页首

属性

  名称 说明
公共属性 DependencyObjectType 获取包装此实例的 CLR 类型的 DependencyObjectType 。  (继承自 DependencyObject。)
公共属性 Dispatcher 获取与此 DispatcherObject 关联的 Dispatcher。 (继承自 DispatcherObject。)
公共属性 IsSealed 获取一个值此实例当前是否已密封 (只读)。 (继承自 DependencyObject。)

页首

附加属性

  名称 说明
公共附加属性 Command

页首

方法

  名称 说明
公共方法 CheckAccess 确定调用线程是否可以访问此 DispatcherObject。 (继承自 DispatcherObject。)
公共方法 ClearValue(DependencyProperty) 清除本地值属性。将清除的属性由 DependencyProperty 标识符指定。 (继承自 DependencyObject。)
公共方法 ClearValue(DependencyPropertyKey) 清除本地值只读属性。将清除的属性由 DependencyPropertyKey指定。 (继承自 DependencyObject。)
公共方法 CoerceValue 强制指定的 依赖项属性的值。此操作将调用在属性元数据中指定的所有 CoerceValueCallback 函数完成为依赖项属性,则在调用 DependencyObject存在。 (继承自 DependencyObject。)
公共方法 Equals 确定提供的 DependencyObject 是否与当前 DependencyObject等效。 (继承自 DependencyObject。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法静态成员 GetCommand 通过XAML使该附加的支柱可用
公共方法 GetHashCode 获取此 DependencyObject的 哈希代码 。 (继承自 DependencyObject。)
公共方法 GetLocalValueEnumerator 创建确定哪些专用的枚举数依赖项属性本地本 DependencyObject设置值。 (继承自 DependencyObject。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValue 返回 依赖项属性 的当前有效值在 DependencyObject的此实例的。 (继承自 DependencyObject。)
公共方法 InvalidateProperty 计算指定的依赖项属性的有效值 (继承自 DependencyObject。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnPropertyChanged 调用,每当更新了所有 依赖项属性 的有效值本 DependencyObject 的。更改的特定依赖项属性在事件数据报告。 (继承自 DependencyObject。)
公共方法 ReadLocalValue ,如果它存在,则返回 依赖项属性的本地值。 (继承自 DependencyObject。)
公共方法静态成员 SetCommand 通过XAML使该附加的支柱可用
公共方法 SetCurrentValue 设置 依赖项属性 的值,而不更改其值的来源。 (继承自 DependencyObject。)
公共方法 SetValue(DependencyProperty, Object) 设置 依赖项属性的本地值,指定由其依赖项属性标识符。 (继承自 DependencyObject。)
公共方法 SetValue(DependencyPropertyKey, Object) 设置是只读的 依赖项属性的本地值,指定由依赖项属性的 DependencyPropertyKey 标识符。 (继承自 DependencyObject。)
受保护的方法 ShouldSerializeProperty 返回一个值序列化过程是否应序列化提供的 依赖项属性的值。 (继承自 DependencyObject。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 VerifyAccess 强制调用线程具有此 DispatcherObject 的访问权限。 (继承自 DispatcherObject。)

页首

字段

  名称 说明
公共字段静态成员 CommandProperty HyperlinkHelper.Command的DP

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.TeamFoundation.Controls.WPF 命名空间