There is a certain user control. And he has a team. So, I want to make a button separately from this control that would execute a command that is in this control (it is added to the CommandBindings this control), but the command is inactive. Even the CanExecute procedure CanExecute not enter the program. Trying to do so
<local:SlideListBox Grid.Row="1" x:Name="lbNot"> <ListBoxItem Content="qwe"/> <ListBoxItem Content="asd"/> <ListBoxItem Content="zxc"/> </local:SlideListBox> <Button Command="{Binding GoNextCommand, ElementName=lbNot}"/>