C# 클래스 mGitHub.SampleApp.Views.ProgressBar.PerformanceProgressBar

A progress bar implementation for a smoother appearance of the indeterminate states, with the added behavior that after the behavior is no longer needed, it waits until the animation completes.
Important - this control is not really designed or tested for regular progress bar use, but only indeterminate. As a result, IsIndeterminate is in the default style. Use the determinate version at your own risk as there are no benefits to this over the standard progress bar in that situation.
상속: System.Windows.Controls.ProgressBar
파일 보기 프로젝트 열기: vcaraulean/mGitHub.SampleApp

공개 프로퍼티들

프로퍼티 타입 설명
IsLoadingProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Overrides the template application stage so that the storyboard can be retrieved from the implementation root.

PerformanceProgressBar ( ) : System

Initializes a new instance of the PerformanceProgressBar type.

보호된 메소드들

메소드 설명
OnIndeterminateStoryboardCompleted ( object sender, EventArgs e ) : void

Hooks up to the Completed event of the indeterminate storyboard. For technical reasons, when a storyboard has a repeat behavior of 'Forever', this means the Completed event is never called. So this method needs to either 1) restart the storyboard animation again or 2) if the indeterminate behavior is finished, not restart the animation and update the underlying bound state.

비공개 메소드들

메소드 설명
EvaluateWhatToDo ( bool value ) : void
GetStoryboard ( Control storyboardOwner, string groupName, string newTransition ) : System.Windows.Media.Animation.Storyboard

Attempts to find a storyboard that matches the newTransition name.

OnIsLoadingChanged ( bool newValue ) : void
OnIsLoadingPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsLoadingProperty property changed handler.

ReallyStartIt ( ) : void
ReallyStopIt ( ) : void

메소드 상세

OnApplyTemplate() 공개 메소드

Overrides the template application stage so that the storyboard can be retrieved from the implementation root.
public OnApplyTemplate ( ) : void
리턴 void

OnIndeterminateStoryboardCompleted() 보호된 메소드

Hooks up to the Completed event of the indeterminate storyboard. For technical reasons, when a storyboard has a repeat behavior of 'Forever', this means the Completed event is never called. So this method needs to either 1) restart the storyboard animation again or 2) if the indeterminate behavior is finished, not restart the animation and update the underlying bound state.
protected OnIndeterminateStoryboardCompleted ( object sender, EventArgs e ) : void
sender object The source object.
e System.EventArgs The event data.
리턴 void

PerformanceProgressBar() 공개 메소드

Initializes a new instance of the PerformanceProgressBar type.
public PerformanceProgressBar ( ) : System
리턴 System

프로퍼티 상세

IsLoadingProperty 공개적으로 정적으로 프로퍼티

Identifies the IsLoading dependency property.
public static DependencyProperty,System.Windows IsLoadingProperty
리턴 System.Windows.DependencyProperty