"As you wish" is not a passive aggressive statement here though. She is the Princess and he is doing the proper protocol of saying "As you wish" after given a directive.
Then later she puts it together that he's using it to say "I love you", which in that era might get him imprisoned for approaching royalty so vulgarly.