c# - XAML Progressbar in Powershell -


i want have progressbar in powershell application, progress changed during executing functions. once 1 function ended, want move progressbar little.

progressbar declared in xaml:

<progressbar x:name="progressbar"               horizontalalignment="left"               height="20"               margin="0,672,0,0"               verticalalignment="top"               width="754" grid.columnspan="4"/> 

then, i'm trying change progressbar value during event button_click:

$progressbar.value = 0  function1     $progressbar.value = 30  function2  $progressbar.value = 100 

i tried logic using write-progress , works, tried non-xaml .net powershel implemented in powershell - success. need use background jobs? or maybe there's solutions.

do have ideas?


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -