0
我有這個Passwordbox這個觸發器:WPF Relaycommand得到passwordbox值
<PasswordBox>
<i:Interaction.Triggers>
<i:EventTrigger EventName="PasswordChanged">
<i:InvokeCommandAction Command="{Binding PasswordChanged}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</PasswordBox>
我如何,我RelayCommand,讓我PasswordBox的內容?
這是我的繼電器命令:
PasswordChanged = new RelayCommand<object>(param => this.GoPasswordChanged());
private void GoPasswordChanged()
{
}
剛剛訪問'PasswordBox.Password'財產? – Noctis
http://stackoverflow.com/a/4649830/2819451 – Gopichandar
Nop,我的繼電器命令是在我的viewmodel中,我無法直接訪問Passworxbox.password – WWWWWWWWWWWWWWP