A man who stabbed his former partner to death inside her Bendigo home has been sentenced to more than 24 years behind bars.