May 19th, 2010, 03:28 AM
this is so strange with ICommand
I have an implementation class of ICommand as follow:
public class commandBtn
private void DoSomething()
private ICommand _cmd;
public ICommand Cmd
_cmd = new GenericCommand(DoSomething);
and my window class as follow:
Title="Window1" Height="300" Width="300">
<Button Name="test" Content="click" />
commandBtn ctx = new commandBtn();
this.DataContext = ctx;
How come the "Cmd" ICommand is still executed while there is no control that binds to it?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!