我可以将ReactiveCommand绑定到Textbox上的MouseDown事件吗?

时间:2012-10-25 16:48:04

标签: wpf textbox reactiveui

我正在尝试获取WPF ReactiveUI框架的新视图ctor绑定以绑定正在处理按钮单击以连接到TextBox MouseDown / click事件的ReactiveCommand。以下不起作用。

public partial class KeypadNumberView 
    : IKeypadNumberView
    , IViewFor<IOnScreenKeyboard>
{
    public KeypadNumberView()
    {
        ViewModel = new KeyboardViewModel();

        InitializeComponent();

        this.Bind(ViewModel, x => x.EnteredText);
        this.BindCommand(ViewModel, vm => vm.Delete, v => v.EnteredText, "MouseDown" ); // doesn't work
        this.BindCommand(ViewModel, vm => vm.Delete); // <== works

1 个答案:

答案 0 :(得分:0)

这似乎应该有效。你可以在http://github.com/reactiveui/reactiveui提交错误吗?