0
在WPF应用程序中,我有一个登录命令,它接受SecureString
作为参数。我使用了一个xaml转换器将密码框中的值传递给该命令。将参数传递给xbind事件处理程序
<PasswordBox
Name="PasswordBox"
Grid.Row="2"
Grid.Column="2" />
<Button
Grid.Row="3"
Grid.Column="3"
Command="{Binding LoginCommand}"
Content="{x:Static p:Resources.LoginView_LoginButtonContent}">
<Button.CommandParameter>
<MultiBinding
Converter="{c:PasswordBoxConverter}"
Mode="TwoWay"
UpdateSourceTrigger="PropertyChanged">
<Binding ElementName="PasswordBox" />
</MultiBinding>
</Button.CommandParameter>
</Button>
我想使用xbind在UWP中做类似的事情。你可以使用xbind将参数传递给事件处理程序吗?