예제 #1
0
 private void SaveLayout(string fileName)
 {
     using (var file = File.CreateText(fileName)) {
         RootVisual.SaveLayout(file.BaseStream, true);
     }
 }
예제 #2
0
 private void SaveOriginalLayout()
 {
     _originalLayout = new MemoryStream();
     RootVisual.SaveLayout(_originalLayout);
     _originalLayout.Position = 0;
 }