6 responses to “WPF From PowerShell – Select-Grid”

  1. Roman Kuzmin

    I like this promising script and the idea itself. I have a warning though:

    The script invokes Set-PSDebug -Strict. It is nice for development, indeed, but it should be avoided in production scripts (or, say, published scripts) because this command changes session state globally and quite seriously – some other commands or scripts may fail after using this script (even after dot-sourcing only) with typical error message “The variable … cannot be retrieved because it has not been set yet.”


    Thanks,
    Roman Kuzmin

  2. Roman Kuzmin

    Very nice progress, really!

    Strict mode seems to be too strict now :) . This command:

    ls | Select-Grid

    triggers an error in function Get-DefaultValue at line “if( $type.IsValueType) {“ (line 135). “IsValueType” is not found. When I turn strict mode off then it works, but this command has yet another effect: right part of the grid window is out of the screen; is this OK?


    Thanks,
    Roman Kuzmin

  3. The PowerShell Guy : More PoSHy WPF from PowerShell coverage

    [...] Update * Jaykul, also finished the WPF From PowerShell – Select-Grid post, and posted and updated source as a [...]

  4. ivan

    http://huddledmasses.org/?attachment_id=540
    instead of 539 in the link
    thanks!
    ivan