本文整理汇总了VB.NET中System.Windows.Input.CommandManager.AddExecutedHandler方法的典型用法代码示例。如果您正苦于以下问题:VB.NET CommandManager.AddExecutedHandler方法的具体用法?VB.NET CommandManager.AddExecutedHandler怎么用?VB.NET CommandManager.AddExecutedHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。
在下文中一共展示了CommandManager.AddExecutedHandler方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: HelpCmdExecuted
Private Sub HelpCmdExecuted(ByVal sender As Object, ByVal e As ExecutedRoutedEventArgs)
' OpenHelpFile opens the help file
OpenHelpFile()
End Sub
示例2: HelpCmdCanExecute
Private Sub HelpCmdCanExecute(ByVal sender As Object, ByVal e As CanExecuteRoutedEventArgs)
' HelpFilesExists() determines if the help file exists
If HelpFileExists() = True Then
e.CanExecute = True
Else
e.CanExecute = False
End If
End Sub