Enable a named item in XAML with PowerShell

Hello,

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

Function Enable-NamedItem {
    [CmdletBinding()]
    Param(
        [String[]]$Item,
        [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 *