Currently, you have the button DataContext
set to a string "ChromaGUI.MainWindow" :
<Button DataContext="ChromaGUI.MainWindow"
.......
Command="{Binding RelativeSource=
{RelativeSource Mode=FindAncestor,
AncestorType={x:Type Window}},
Path=DataContext.SendMessageCommand}"
CommandParameter="{Binding FullCommandString}"/>
String doesn't have property FullCommandString
, so your command parameter binding will fail. Simply remove DataContext
setting in the button to make it use default DataContext
which is corresponding item in the ItemsSource
:
<Button
.......
Command="{Binding RelativeSource=
{RelativeSource Mode=FindAncestor,
AncestorType={x:Type Window}},
Path=DataContext.SendMessageCommand}"
CommandParameter="{Binding FullCommandString}"/>