Starts recording the specified target.
public RecordingSession StartRecording(TopLevel target, RecordingOptions? options = null, string? outputPath = null)
The top-level window or control to record.
Recording options.
Output path for the recording. If null, uses temp directory.