Exemple #1
0
        /// <summary>
        /// Passes MainWindow handle to clipboard helper for setting up later.
        /// </summary>
        private void InitializeClipboard()
        {
            var helper = new WindowInteropHelper(this);

            _clipboard.InitializeListener(HwndSource.FromHwnd(helper.EnsureHandle()));
            _clipboard.ClipboardChanged += QueryAppraisalAsync;
        }