How to force UI update before blocking operation? [SOLVED]
Posted: Sun Mar 20, 2016 5:37 am
				
				I have an animated GIF that I want to set to "Visible" right before I do a fairly long blocking operation.
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?
			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);