> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Save()

## Definition

Saves the window to workspaces.

## Examples

```csharp
// IWorkspacePersistence member. Required for saving window to workspaces
public void Save(XDocument document, XElement element)
{

  if (MainTabControl != null)
    MainTabControl.SaveToXElement(element);

}
```