How to save the content of Textbox into a textfile
- by Owais Wani
I have a textbox which has some content. I also have a button (SAVE) which shud open the FileSaveDialog and allow the content to be saved in a .txt file.
XAML:
<TextBox Height="93" IsReadOnly="True" Text="{Binding Path=ReadMessage, Mode=TwoWay}" Name="MessageRead" />
<Button Content="Save" Command="{Binding Path=SaveFileCommand}"…