LoadingIndicator icon indicating copy to clipboard operation
LoadingIndicator copied to clipboard

Option to not blur and disable

Open vbisbest opened this issue 5 years ago • 1 comments

Is there an option to not blur and disable the parent form? I want to display log messages during my long running process but they are hidden from the grey scale and blue feature. Would be great to have a property to enable or disable that feature. Thanks!

vbisbest avatar Mar 08 '19 15:03 vbisbest

@vbisbest, Do you mean that LongOperation.Start should perform something like control.Enabled = false, display indicator on top of control, and bypass draw, focus, select functionality to parent control? If so,it is not yet implemented.

By the way, you can change display behavior via following settings:

var settings = LongOperationSettings.Default
                .WithCustomImageProcessing(image => image.MakeGrayscale()); // Only grayscale image, without blur

settings = LongOperationSettings.Default
                .WithCustomImageProcessing(image => image); // Original image, without transforming

Also, with this technique you can draw additional log message.

Or, may be you can create your own indicator control with your message (also you can place on your control BoxIndicatorControl, LoadingIndicatorControl - circles or ImageIndicatorControl). To setup display your own control:

var settings = LongOperationSettings.Default
                .WithCustomIndicator(() => new YourIndicatorControl())

MaxShoshin avatar Mar 09 '19 20:03 MaxShoshin