When I do then it does not show (If I don;t do the blocking operation it shows fine).
Is there a method to cause the UI to update immediateld? A DoEvents sort of thing?
Code: Select all
Working.Visibility = Visibility.Visible;
Sha2.Sha256 hasher = new Sha2.Sha256();
byte[] array = Encoding.ASCII.GetBytes(cPassword.Password + salt);
hasher.AddData(array, 0, (uint)array.Length);
uint[] hash = hasher.GetHashUInt32();
StringBuilder sb = new StringBuilder();
foreach (uint i in hash) sb.Append(i.ToString("X04"));
App.cCollector = App.cServiceClient.GetCollectorForUserName(cUsername.Text);