usage
Said with a grin, it praises someone who has pulled off something impressive or unexpected. Said with a sigh, it teases someone for a blunder, much like "trust you to...". It is casual: say it to friends, family or people younger than you, not to your boss.