Enable a named item in XAML with PowerShell


Here is a Function I wrote to enable a named item disabled by design or previously disabled.

Function Enable-NamedItem {
        [Object]$Window = $Window
    foreach ($object in $Item) {
        $Window.$object.IsEnabled = $true
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.