【问题标题】:WPF - Which built in controls implement ICommandSource?WPF - 哪些内置控件实现了 ICommandSource?
【发布时间】:2009-03-26 11:34:38
【问题描述】:

这是一个非常简单的问题,不是吗?

我只是在一个实现 ICommandSource 的控件的平面列表之后,..认为它会很有用,毫无疑问有人有这种信息。

提前致谢

【问题讨论】:

    标签: wpf command


    【解决方案1】:

    根据反射器:ButtonBaseMenuItemHyperlinkInputBinding(不是控件)。

    【讨论】:

    • 该死的,你很快肯特。谢谢
    【解决方案2】:

    试试这个代码 sn-p:

            Assembly assem = Assembly.LoadFrom(@"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll");
            foreach (Type t in assem.GetTypes())
            {
                Type interfaceType = t.GetInterface("ICommandSource");
                if (interfaceType != null)
                    Console.WriteLine(t.ToString());
            }
    

    【讨论】:

      【解决方案3】:

      Here 是一个很好的建议,如果您想扩展这个太短的列表。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-01-02
        • 1970-01-01
        • 2014-07-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多