Property script.isWpfPreview Overload Returns true if running in WPF preview mode. public static bool isWpfPreview { get; } Property Value bool