csharp System.Windows.Input.NavigationCommands.Search类(方法)实例源码

下面列出了csharp System.Windows.Input.NavigationCommands.Search 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Windows.Inpu   
//引入命名空间
using System.Windows;
using System.Windows.Input;

namespace SDKSample
{
    public partial class Search : Window
    {
        public Search()
        {
            InitializeComponent();
        }

        void navigationCommandSearch_CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            // Can search of there is a document
            e.CanExecute = (this.flowDocumentPageViewer.Document != null);
        }

        void navigationCommandSearch_Executed(object target, ExecutedRoutedEventArgs e)
        {
            // Implement custom Search handling code
        }
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号