C# 클래스 ScpDriverInstaller.Utilities.WPFThreadingExtensions

파일 보기 프로젝트 열기: nefarius/ScpToolkit

공개 메소드들

메소드 설명
GetContentThreadSafe ( this cc ) : string

Gets the Content of a ContentControl in a thread safe way

GetIsCheckedThreadSafe ( this cb ) : bool

Gets the value of the IsChecked property of a CheckBox in a thread safe way

GetValueThreadSafe ( this pb ) : double

Gets the Value property of a ProgressBar in a thread safe way

GetVisibilityThreadSafe ( this uie ) : Visibility

Gets the Visibility of a UIElement in a thread safe way

InvokeIfRequired ( this control, System.Action methodcall, DispatcherPriority priorityForCall ) : void

Simple helper extension method to marshall to correct thread if its required

SetContentThreadSafe ( this cc, string s ) : void

Sets the Content of a ContentControl in a thread safe way

SetIsCheckedThreadSafe ( this rb, bool val ) : void

Sets the value of the IsChecked property of a RadioButton in a thread safe way

SetIsEnabledThreadSafe ( this uie, bool enabled ) : void

Sets the IsEnabled value in a thread safe way

SetTextThreadSafe ( this tb ) : string

Gets the Text of a TextBox in a thread safe way

SetTextThreadSafe ( this tb, string s ) : void

Sets the text of a TextBlock in a thread safe way

SetValueThreadSafe ( this pb, double val ) : void

Sets the Value property of a ProgressBar in a thread safe way

SetVisibilityThreadSafe ( this uie, Visibility vis ) : void

Sets the Visibility of a UIElement in a thread safe way

메소드 상세

GetContentThreadSafe() 공개 정적인 메소드

Gets the Content of a ContentControl in a thread safe way
public static GetContentThreadSafe ( this cc ) : string
cc this The ContentControl
리턴 string

GetIsCheckedThreadSafe() 공개 정적인 메소드

Gets the value of the IsChecked property of a CheckBox in a thread safe way
public static GetIsCheckedThreadSafe ( this cb ) : bool
cb this The CheckBox
리턴 bool

GetValueThreadSafe() 공개 정적인 메소드

Gets the Value property of a ProgressBar in a thread safe way
public static GetValueThreadSafe ( this pb ) : double
pb this The ProgressBar
리턴 double

GetVisibilityThreadSafe() 공개 정적인 메소드

Gets the Visibility of a UIElement in a thread safe way
public static GetVisibilityThreadSafe ( this uie ) : Visibility
uie this The UIElement
리턴 Visibility

InvokeIfRequired() 공개 정적인 메소드

Simple helper extension method to marshall to correct thread if its required
public static InvokeIfRequired ( this control, System.Action methodcall, DispatcherPriority priorityForCall ) : void
control this The source control
methodcall System.Action The method to call
priorityForCall DispatcherPriority The thread priority
리턴 void

SetContentThreadSafe() 공개 정적인 메소드

Sets the Content of a ContentControl in a thread safe way
public static SetContentThreadSafe ( this cc, string s ) : void
cc this The ContentControl
s string The string to use as the Content of the ContentControl
리턴 void

SetIsCheckedThreadSafe() 공개 정적인 메소드

Sets the value of the IsChecked property of a RadioButton in a thread safe way
public static SetIsCheckedThreadSafe ( this rb, bool val ) : void
rb this The RadioButton
val bool The value to set the IsChecked property to
리턴 void

SetIsEnabledThreadSafe() 공개 정적인 메소드

Sets the IsEnabled value in a thread safe way
public static SetIsEnabledThreadSafe ( this uie, bool enabled ) : void
uie this Thr UIElement
enabled bool The value for the IsEnabled property
리턴 void

SetTextThreadSafe() 공개 정적인 메소드

Gets the Text of a TextBox in a thread safe way
public static SetTextThreadSafe ( this tb ) : string
tb this The TextBox
리턴 string

SetTextThreadSafe() 공개 정적인 메소드

Sets the text of a TextBlock in a thread safe way
public static SetTextThreadSafe ( this tb, string s ) : void
tb this The TextBlock
s string The string for the Text property
리턴 void

SetValueThreadSafe() 공개 정적인 메소드

Sets the Value property of a ProgressBar in a thread safe way
public static SetValueThreadSafe ( this pb, double val ) : void
pb this the ProgressBar
val double The value to Set the Value property to
리턴 void

SetVisibilityThreadSafe() 공개 정적인 메소드

Sets the Visibility of a UIElement in a thread safe way
public static SetVisibilityThreadSafe ( this uie, Visibility vis ) : void
uie this The UIElement
vis Visibility The required Visibility
리턴 void