private void OnSubmitCommand(object obj) { DisplayProgressBar = Visibility.Visible; CreateMapElement(); DisplayProgressBar = Visibility.Hidden; }