/// <summary> /// Initializes a new instance of the <see cref="SharpPreviewHandler"/> class. /// </summary> protected SharpPreviewHandler() { // Create the preview handler host, we must do this in the constructor because the constructor // is called on the VI thread which is STA, all subsequent calls will be on MTA threads. previewHandlerHost = new PreviewHandlerHost(); // Now make sure it's actually created. #pragma warning disable 168 var handle = previewHandlerHost.Handle; #pragma warning restore 168 }
/// <summary> /// Initializes a new instance of the <see cref="SharpPreviewHandler"/> class. /// </summary> protected SharpPreviewHandler() { // Create the preview handler host, we must do this in the constructor because the constructor // is called on the VI thread which is STA, all subsequent calls will be on MTA threads. previewHandlerHost = new PreviewHandlerHost(); // Now make sure it's actually created. #pragma warning disable 168 var handle = previewHandlerHost.Handle; #pragma warning restore 168 }