Esempio n. 1
0
        public bool SetBackgroundColor(Color color)
        {
            var hr = _previewHandlerVisuals?.SetBackgroundColor(color);

            return(hr.HasValue && hr.Value.Succeeded);
        }
Esempio n. 2
0
        /// <summary>
        /// Sets the background if the handler implements IPreviewHandlerVisuals.
        /// </summary>
        /// <param name="color">The background color.</param>
        /// <returns>Whether the call succeeds.</returns>
        public bool SetBackground(Color color)
        {
            var hr = visuals?.SetBackgroundColor(ColorRefFromColor(color));

            return(hr.HasValue && (int)hr.Value >= 0);
        }