An empty Binding, without a path, binds directly to the DataContext, so
{Binding}
is enough to make it work! Your example:
<Button
x:Name="btnMain"
Command="infra:ApplicationCommands.MyCommand"
CommandParameter="{Binding}"
/>
An empty Binding, without a path, binds directly to the DataContext, so
{Binding}
is enough to make it work! Your example:
<Button
x:Name="btnMain"
Command="infra:ApplicationCommands.MyCommand"
CommandParameter="{Binding}"
/>