Is there a WinForm control inspector application?

后端 未结 3 574
野的像风
野的像风 2020-12-28 13:37

I\'m looking for something that provides interactive meta-data about a running .NET WinForms application.

Basically, I\'d like to be able to hover over a running Win

3条回答
  •  抹茶落季
    2020-12-28 14:08

    Try the nuget package: WinForm.Inspector.Tool

    Setup documentation

    • Instantiate the Inspector in your project.

      Inspector inspector = new Inspector();

    • Ignore specific controls ex. buttons.

      inspector.IgnoreTypes = new Type[] { typeof(Button) };

    • Skip controls ex. invisible and disabled.

      inspector.SkipChilds = GetChildAtPointSkip.Invisible | GetChildAtPointSkip.Disabled;

    Run your project and press Ctrl + F8 to open the ControlViewer.

    Hold down "Alt" and move your mouse over the controllers to select them.

提交回复
热议问题