Skip to content

Commit

Permalink
change save format back to xamlpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Chang committed May 13, 2019
1 parent d8c0a29 commit 130c0ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ internal void SaveToXamlPkg()
{
using (var ms = new FileStream(CurrentSetting.Doc_Location, FileMode.Create))
{
tr.Save(ms, DataFormats.Xaml, true);
tr.Save(ms, DataFormats.XamlPackage, true);
}
File.WriteAllText(CurrentSetting.Bak_Location, tr.Text);
}
Expand All @@ -366,7 +366,7 @@ internal void SaveToXamlPkg()
{
using (var ms = new FileStream(CurrentSetting.Doc_Location, FileMode.Create))
{
tr.Save(ms, DataFormats.Xaml, true);
tr.Save(ms, DataFormats.XamlPackage, true);
};
File.WriteAllText(CurrentSetting.Bak_Location, tr.Text);
});
Expand Down Expand Up @@ -466,7 +466,7 @@ private void Win_Main_Loaded(object sender, RoutedEventArgs e)
try
{
var tr = new TextRange(RTB_Main.Document.ContentStart, RTB_Main.Document.ContentEnd);
tr.Load(new FileStream(CurrentSetting.Doc_Location, FileMode.Open), DataFormats.Xaml);
tr.Load(new FileStream(CurrentSetting.Doc_Location, FileMode.Open), DataFormats.XamlPackage);
}
catch
{
Expand Down
Binary file modified bin/Release/DesktopNote.exe
Binary file not shown.

0 comments on commit 130c0ab

Please sign in to comment.