Powershell Output to WPF

Welcome Forums General PowerShell Q&A Powershell Output to WPF

This topic contains 1 reply, has 2 voices, and was last updated by

2 years ago.

  • Author
  • #67948

    Topics: 7
    Replies: 10
    Points: 0
    Rank: Member

    How can i get powershell output to WPF window. For example :

    Write-Host -ForegroundColor Red -NoNewline "Connection down..."


    Write-Output "$(Get-Date): Connection up!"

    How to bind it to textBox in WPF.

  • #67995

    Topics: 13
    Replies: 4872
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    You can't "bind it" to a textbox. You have to modify the Text property of the TextBox object and set it equal to whatever text you want displayed.

The topic ‘Powershell Output to WPF’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort