private static SetSelection ( System.Windows.Controls.PasswordBox passwordBox, int start, int length ) : void | ||
passwordBox | System.Windows.Controls.PasswordBox | The PasswordBox to set the selection. |
start | int | |
length | int | |
return | void |
private static void SetSelection(PasswordBox passwordBox, int start, int length)
{
passwordBox.GetType()
.GetMethod("Select", BindingFlags.Instance | BindingFlags.NonPublic)
.Invoke(passwordBox, new object[] {start, length});
}