36 references to TaskDialogProgressBarState
System.Windows.Forms (32)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (2)
112
_progressBar = new TaskDialogProgressBar(
TaskDialogProgressBarState
.None);
250
/// property is not <see cref="
TaskDialogProgressBarState
.None"/>.
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogProgressBar.cs (30)
11
private
TaskDialogProgressBarState
_state;
12
private
TaskDialogProgressBarState
_stateWhenBound;
31
public TaskDialogProgressBar(
TaskDialogProgressBarState
state)
42
/// The state of the progress bar. The default is <see cref="
TaskDialogProgressBarState
.Normal"/>,
44
/// where the default value is <see cref="
TaskDialogProgressBarState
.None"/>.
49
/// <see cref="
TaskDialogProgressBarState
.None"/>.
54
/// <see cref="
TaskDialogProgressBarState
.None"/> to any other state,
60
/// to be set is <see cref="
TaskDialogProgressBarState
.None"/>.
63
/// <see cref="State"/> property value was <see cref="
TaskDialogProgressBarState
.None"/>.
68
public
TaskDialogProgressBarState
State
77
if (BoundPage is not null && value ==
TaskDialogProgressBarState
.None)
83
TaskDialogProgressBarState
previousState = _state;
123
/// <see cref="State"/> property value was <see cref="
TaskDialogProgressBarState
.None"/>.
169
/// <see cref="State"/> property value was <see cref="
TaskDialogProgressBarState
.None"/>.
215
/// <see cref="State"/> property value was <see cref="
TaskDialogProgressBarState
.None"/>.
244
if (_state !=
TaskDialogProgressBarState
.Normal)
273
/// <see cref="State"/> property value was <see cref="
TaskDialogProgressBarState
.None"/>.
305
internal override bool IsCreatable => base.IsCreatable && _state !=
TaskDialogProgressBarState
.None;
307
private static bool ProgressBarStateIsMarquee(
TaskDialogProgressBarState
state) =>
308
state is
TaskDialogProgressBarState
.Marquee or
309
TaskDialogProgressBarState
.MarqueePaused;
311
private static uint GetNativeProgressBarState(
TaskDialogProgressBarState
state) => state switch
313
TaskDialogProgressBarState
.Normal => PInvoke.PBST_NORMAL,
314
TaskDialogProgressBarState
.Paused => PInvoke.PBST_PAUSED,
315
TaskDialogProgressBarState
.Error => PInvoke.PBST_ERROR,
328
TaskDialogProgressBarState
.MarqueePaused :
TaskDialogProgressBarState
.Normal;
341
private void UpdateState(
TaskDialogProgressBarState
previousState, bool isInitialization = false)
357
if (newStateIsMarquee && previousState !=
TaskDialogProgressBarState
.Normal)
369
_state ==
TaskDialogProgressBarState
.Marquee,
WinFormsControlsTest (4)
TaskDialogSamples.cs (4)
209
State =
TaskDialogProgressBarState
.Paused
297
State =
TaskDialogProgressBarState
.Marquee
376
if (progressBar.State ==
TaskDialogProgressBarState
.Marquee)
377
progressBar.State =
TaskDialogProgressBarState
.Normal;