I am trying to using Fody Commander to implement Sign in command.
My login button XAML is like this:
<Button x:Name="button"
IsDefault="True"
Command="{Binding SignInCommand}"
Style="{DynamicResource AccentedSquareButtonStyle}"
Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Margin="10">
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource SignInConverter}">
<Binding Path="Text" ElementName="UserName" />
<Binding ElementName="Password" />
</MultiBinding>
</Button.CommandParameter>
<TextBlock FontSize="{DynamicResource NormalFontSize}">Sign In</TextBlock>
</Button>
In my ViewModel I have this:
[OnCommand("SignInCommand")]
public void OnSignIn()
{
//Need to access the parameters passed from the XAML.
}
I am at loss how to access the parameters I passed from the XAML to the OnSignIn().