c# - Default foreground color of ProgressBar -


i've been changing foreground color of progressbar control c# code using brush , brushes classes system.windows.media library. however, i'm wondering if .net provides access original default foreground color of progressbar when want revert back.

example:

enter image description here

right i'm referencing answer provided @beauty on this question uses systemcolors class. systemcolors seems .net class provides default brush colors of controls, don't see brush foreground of progressbar. color obtainable in systemcolors, or there other way of getting it?

an example of how changing colors:

xaml:

<progressbar name="progress" foreground="{binding loadscreenmodel.barcolor}" /> 

c#:

private brush _barcolor = brushes.red;  public brush barcolor {     { return _barcolor; }     set     {         _barcolor = value;         notifypropertychange(() => barcolor);     } } 

the default style progressbar control (found on question , can on msdn) reveals foreground color default is:

#ff01d328

that may match system color, otherwise use that.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -