Browse Source

Stop WPF designer from reformatting XAML in text editor when nothing is changed in the designer.

pull/20/merge
Matt Ward 15 years ago
parent
commit
f0ab34006f
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/WpfViewContent.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/WpfViewContent.cs

@ -114,7 +114,7 @@ namespace ICSharpCode.WpfDesign.AddIn @@ -114,7 +114,7 @@ namespace ICSharpCode.WpfDesign.AddIn
protected override void SaveInternal(OpenedFile file, System.IO.Stream stream)
{
if(designer.DesignContext!=null){
if(IsDirty && designer.DesignContext!=null){
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.IndentChars = EditorControlService.GlobalOptions.IndentationString;

Loading…
Cancel
Save