C# Class ScpDriverInstaller.Utilities.WPFThreadingExtensions

Afficher le fichier Open project: nefarius/ScpToolkit

Méthodes publiques

Méthode Description
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

Method Details

GetContentThreadSafe() public static méthode

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

GetIsCheckedThreadSafe() public static méthode

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
Résultat bool

GetValueThreadSafe() public static méthode

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

GetVisibilityThreadSafe() public static méthode

Gets the Visibility of a UIElement in a thread safe way
public static GetVisibilityThreadSafe ( this uie ) : Visibility
uie this The UIElement
Résultat Visibility

InvokeIfRequired() public static méthode

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
Résultat void

SetContentThreadSafe() public static méthode

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
Résultat void

SetIsCheckedThreadSafe() public static méthode

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
Résultat void

SetIsEnabledThreadSafe() public static méthode

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
Résultat void

SetTextThreadSafe() public static méthode

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

SetTextThreadSafe() public static méthode

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
Résultat void

SetValueThreadSafe() public static méthode

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
Résultat void

SetVisibilityThreadSafe() public static méthode

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
Résultat void