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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -