Save RichTextBox document

How can I save RichTextBox document in Xaml and C# I tried to do it with SaveAs command but i did not find any informations about using this command. Please I do not how to do it.