Trailing 27-20, the Wildcats (2-2) went on a 16-2 run, with Bamforth scoring eight straight points in the spree, including a pair of 3-pointers.
Dayton (4-2) used a 7-0 spurt to tie it at 38, but couldn't pull ahead until a Josh Benson three-point play with 2:34 to go made it 57-56.
Tresnak knotted the game with a free throw, then Bamforth hit a 3 with 1:26 remaining.
Benson trimmed the deficit to 60-59 with two free throws, which Bamforth matched with 8 seconds left. Devin Oliver made a layup with 1 second remaining for the final margin as the Flyers saw their three-game winning streak end.
Kevin Dillard led Dayton with 18 points and Benson had 17 in the first meeting between the programs.
Is there a link between recruiting wins and success? Kentucky and LSU are among teams that have recruited well, but haven't reached their expectations.
Purdue junior forward Vincent Edwards, who has averaged 19.0 points in the NCAA tournament, has decided not to pursue the NBA for now.
Kansas-Kentucky is not only the headliner of the Big 12/SEC Challenge but arguably the most intriguing. We rank all the games in the January event.