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