private async void OnChangeRandomGoldTileCount(object sender, RoutedEventArgs e) { var goldTileCount = await StaticHelpers.GetUserString("How Many Gold Tiles?", RandomGoldTileCount.ToString()); if (Int32.TryParse(goldTileCount, out int newVal)) { RandomGoldTileCount = newVal; // not setting the gold tiles to be the new value for now becaues of Undo problems...instead hit Next and then Undo } }