资源简介
WPF自定义搜索控件,详情可见博文:http://blog.csdn.net/zhuo_wp/article/details/78821711
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
namespace Client.MVVM
{
///
/// A command whose sole purpose is to relay its functionality to other objects by invoking delegates.
/// The default return value for the CanExecute method is ‘true‘.
///
public class RelayCommand : ICommand
{
#region Declarations
private readonly Func _canExecute;
private readonly Action _execute;
#endregion
#region Constructors
///
/// Initializes a new instance of the class and the command can always be executed.
///
/// The execution logic.
public RelayCommand(Action execute) : this(execute null)
{
}
///
/// Initializes a new instance of the class.
///
/// The execution logic.
/// The execution status logic.
public RelayCommand(Action execute Func canExecute)
{
if (execute == null)
throw new ArgumentNullException(“execute“);
_execute = execute;
_canExecute = canExecute;
}
#endregion
#region ICommand Members
public event EventHandler CanExecuteChanged
{
add
{
if (_canExecute != null)
CommandManager.RequerySuggested += value;
}
remove
{
if (_canExecute != null)
CommandManager.RequerySuggested -= value;
}
}
public Boolean CanExecute(object parameter)
{
return _canExecute == null ? true : _canExecute();
}
public void Execute(object parameter)
{
_execute();
}
#endregion
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-16 21:10 SearchableTextBoxExample\
目录 0 2017-12-16 20:48 SearchableTextBoxExample\.vs\
目录 0 2017-12-16 20:48 SearchableTextBoxExample\.vs\SearchableTextBoxExample\
目录 0 2017-12-16 20:48 SearchableTextBoxExample\.vs\SearchableTextBoxExample\v15\
文件 96768 2017-12-16 21:14 SearchableTextBoxExample\.vs\SearchableTextBoxExample\v15\.suo
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\
文件 2677 2017-12-16 20:12 SearchableTextBoxExample\Client.MVVM\Client.MVVM.csproj
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\Properties\
文件 1358 2017-12-16 20:12 SearchableTextBoxExample\Client.MVVM\Properties\AssemblyInfo.cs
文件 2183 2017-12-16 20:12 SearchableTextBoxExample\Client.MVVM\RelayCommand.cs
文件 1026 2017-12-16 20:12 SearchableTextBoxExample\Client.MVVM\UIManager.cs
文件 1154 2017-12-16 20:12 SearchableTextBoxExample\Client.MVVM\ViewModelba
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\bin\
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\bin\Debug\
文件 6656 2017-12-16 20:16 SearchableTextBoxExample\Client.MVVM\bin\Debug\Client.MVVM.dll
文件 17920 2017-12-16 20:16 SearchableTextBoxExample\Client.MVVM\bin\Debug\Client.MVVM.pdb
目录 0 2017-12-16 22:06 SearchableTextBoxExample\Client.MVVM\bin\Release\
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\obj\
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\obj\Debug\
文件 468 2017-12-16 20:16 SearchableTextBoxExample\Client.MVVM\obj\Debug\Client.MVVM.csproj.FileListAbsolute.txt
文件 2213 2017-12-16 20:16 SearchableTextBoxExample\Client.MVVM\obj\Debug\Client.MVVM.csprojResolveAssemblyReference.cache
文件 6656 2017-12-16 20:16 SearchableTextBoxExample\Client.MVVM\obj\Debug\Client.MVVM.dll
文件 17920 2017-12-16 20:16 SearchableTextBoxExample\Client.MVVM\obj\Debug\Client.MVVM.pdb
文件 42 2017-12-16 21:11 SearchableTextBoxExample\Client.MVVM\obj\Debug\CoreCompileInputs.cache
文件 711 2017-12-16 20:53 SearchableTextBoxExample\Client.MVVM\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6883 2017-12-16 21:11 SearchableTextBoxExample\Client.MVVM\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
目录 0 2017-12-16 22:06 SearchableTextBoxExample\Client.MVVM\obj\Debug\TempPE\
目录 0 2017-12-16 21:10 SearchableTextBoxExample\Client.MVVM\obj\Release\
文件 42 2017-12-16 20:12 SearchableTextBoxExample\Client.MVVM\obj\Release\CoreCompileInputs.cache
目录 0 2017-12-16 21:15 SearchableTextBoxExample\SearchableTextBox\
目录 0 2017-12-16 21:02 SearchableTextBoxExample\SearchableTextBox\Converters\
............此处省略103个文件信息
- 上一篇:WPF自定义分页控件
- 下一篇:鸢尾花数据
相关资源
- WPF自定义分页控件
- WPF中的DateTimePicker控件
- WPF漂亮导航面板源码20121022.zip
- WPF异形悬浮窗体源码
- 如何在WPF应用程序中通过HttpClient调用
- wpf rtmp,rtsp 播放器
- wpf 触屏虚拟键盘支持中英文切换
- Arcgis Runtime SDK for WPF文件过大,内附网
- DynamicDataDisplay.dll
- 小人快跑WPF帧动画效果
- C# wpf combobox带treeview的自定义控件
- WPF TabControl完美样式在下方显示+完美
- 串口通信 wpf C#
- wpf游戏2048
- 骑士周游问题WPF工程
- wpf led 时钟
- WPF流程图 开发
- WPF分页控件
- C#WPF 右键菜单 显示 事件触发 测试
- WPF loading源码合集汇集好几种loading效
- wpf仿QQ好友分组
- WPF:定制Checkbox样式,让“正确”绿得
- 刘铁猛《深入浅出WPF》全套真高清视
- wpf border 边框不同颜色
- WPF复制粘贴剪切功能.rar
- MVVM,WPF
- C#控制系统声音大小
- wpf 消息提示框仿QQ左下角提示框
-
xm
l文件与WPF中TreeView、Menu交互 -
WPF Application fr
amework (WAF) Nested
评论
共有 条评论