嗨人stackoverflow.我正在使用MVVM,我让ViewModel使用Property Password调用UserViewModel.在View中有一个控件PasswordBox.
<PasswordBox x:Name="txtPassword" Password="{Binding Password}" />
Run Code Online (Sandbox Code Playgroud)
但是这个xaml不起作用.你怎么做绑定?请帮忙!!
我需要在WPF中显式设置密码框内的cursorposition.我在passwordbox中看不到selectionstart属性.
有帮助吗?