This project is read-only.
1

Closed

SingleEventCommand can't work for DataContextChanged event.

description

I have tried many mvvm framework's event to command codes , all can't work for the the DataContextChanged event .
SingleEventCommand can't work for the DataContextChanged event too.
 
e.g: below code can't work.
////////////////////////////////////////////////////////////////////////////////////////////////////////
            <TreeView>
                <TreeViewItem Header="A"
                    cmd:SingleEventCommand.RoutedEventName="DataContextChanged"
                    cmd:SingleEventCommand.TheCommandToRun="{Binding Path=NewCommand}">
                </TreeViewItem>
                <TreeViewItem  Header="B">
                </TreeViewItem>
            </TreeView>
////////////////////////////////////////////////////////////////////////////////////////////////////////
Closed Nov 27, 2011 at 6:14 PM by sachabarber
Not an issue

comments

sachabarber wrote May 2, 2010 at 7:36 AM

No that is correct it can not.

wrote Nov 27, 2011 at 6:14 PM

wrote Feb 22, 2013 at 12:07 AM

wrote May 16, 2013 at 11:46 AM