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)
11private TaskDialogProgressBarState _state; 12private TaskDialogProgressBarState _stateWhenBound; 31public 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"/>. 68public TaskDialogProgressBarState State 77if (BoundPage is not null && value == TaskDialogProgressBarState.None) 83TaskDialogProgressBarState 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"/>. 244if (_state != TaskDialogProgressBarState.Normal) 273/// <see cref="State"/> property value was <see cref="TaskDialogProgressBarState.None"/>. 305internal override bool IsCreatable => base.IsCreatable && _state != TaskDialogProgressBarState.None; 307private static bool ProgressBarStateIsMarquee(TaskDialogProgressBarState state) => 308state is TaskDialogProgressBarState.Marquee or 309TaskDialogProgressBarState.MarqueePaused; 311private static uint GetNativeProgressBarState(TaskDialogProgressBarState state) => state switch 313TaskDialogProgressBarState.Normal => PInvoke.PBST_NORMAL, 314TaskDialogProgressBarState.Paused => PInvoke.PBST_PAUSED, 315TaskDialogProgressBarState.Error => PInvoke.PBST_ERROR, 328TaskDialogProgressBarState.MarqueePaused : TaskDialogProgressBarState.Normal; 341private void UpdateState(TaskDialogProgressBarState previousState, bool isInitialization = false) 357if (newStateIsMarquee && previousState != TaskDialogProgressBarState.Normal) 369_state == TaskDialogProgressBarState.Marquee,
WinFormsControlsTest (4)
TaskDialogSamples.cs (4)
209State = TaskDialogProgressBarState.Paused 297State = TaskDialogProgressBarState.Marquee 376if (progressBar.State == TaskDialogProgressBarState.Marquee) 377progressBar.State = TaskDialogProgressBarState.Normal;