1. <legend id='hByXl'><style id='hByXl'><dir id='hByXl'><q id='hByXl'></q></dir></style></legend>

      <tfoot id='hByXl'></tfoot>

      <small id='hByXl'></small><noframes id='hByXl'>

    2. <i id='hByXl'><tr id='hByXl'><dt id='hByXl'><q id='hByXl'><span id='hByXl'><b id='hByXl'><form id='hByXl'><ins id='hByXl'></ins><ul id='hByXl'></ul><sub id='hByXl'></sub></form><legend id='hByXl'></legend><bdo id='hByXl'><pre id='hByXl'><center id='hByXl'></center></pre></bdo></b><th id='hByXl'></th></span></q></dt></tr></i><div id='hByXl'><tfoot id='hByXl'></tfoot><dl id='hByXl'><fieldset id='hByXl'></fieldset></dl></div>
        • <bdo id='hByXl'></bdo><ul id='hByXl'></ul>

        Visual Studio 2017 - 表达式交互发生了什么?

        Visual Studio 2017 - What happened to Expression interactions?(Visual Studio 2017 - 表达式交互发生了什么?)
        <i id='kf8Qk'><tr id='kf8Qk'><dt id='kf8Qk'><q id='kf8Qk'><span id='kf8Qk'><b id='kf8Qk'><form id='kf8Qk'><ins id='kf8Qk'></ins><ul id='kf8Qk'></ul><sub id='kf8Qk'></sub></form><legend id='kf8Qk'></legend><bdo id='kf8Qk'><pre id='kf8Qk'><center id='kf8Qk'></center></pre></bdo></b><th id='kf8Qk'></th></span></q></dt></tr></i><div id='kf8Qk'><tfoot id='kf8Qk'></tfoot><dl id='kf8Qk'><fieldset id='kf8Qk'></fieldset></dl></div>

            <tfoot id='kf8Qk'></tfoot>
          1. <legend id='kf8Qk'><style id='kf8Qk'><dir id='kf8Qk'><q id='kf8Qk'></q></dir></style></legend>
              <tbody id='kf8Qk'></tbody>

              • <small id='kf8Qk'></small><noframes id='kf8Qk'>

                  <bdo id='kf8Qk'></bdo><ul id='kf8Qk'></ul>
                  本文介绍了Visual Studio 2017 - 表达式交互发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我广泛使用 Expression 交互的 CallMethodAction 以对 MVVM 友好的方式处理来自 XAML 的事件.

                  I make extensive use of Expression interactions' CallMethodAction to handle events from XAML in a MVVM-friendly way.

                  我刚刚在 VS2017 中创建了一个新的 WPF 项目,现在我看到旧的 Expression 命名空间已经消失了.我发现 这个页面在 MSDN 上,这是我正在寻找的操作,但是在引用了该程序集并添加了它不包含 CallMethodAction 的命名空间之后.该页面适用于 Silverlight,这是 WPF,所以我担心该操作不再可用.

                  I have just created a new WPF project in VS2017 and now I see the old Expression namespace is gone. I found this page on MSDN which is the action I'm looking for but after referencing that assembly and adding the namespace it does not contain the CallMethodAction. That page is for Silverlight and this is WPF, so I'm concerned that action is no longer available.

                  那么有谁知道它是否实际上已被删除/替换?现在应该如何在视图模型上调用事件处理程序?

                  So does anyone know if it has in fact been removed/replaced? How is one supposed to call event handlers on the viewmodel now?

                  (我知道 InvokeCommandAction,但我更喜欢 CallMethodAction,因为它中继原始事件参数,并允许取消预览事件.)

                  (I do know about InvokeCommandAction, but I prefer CallMethodAction since it relays the original event arguments, and allows for canceling preview events.)

                  编辑:为了继续前进,我尝试了 InvokeCommandAction,但它的工作方式也不再相同,而且我找不到任何关于新用法的文档.

                  Edit: Just to move forward I tried InvokeCommandAction but it no longer works the same way either and I cannot find any documentation on the new usage.

                  我确实找到了 Microsoft.Xaml.Interactions 命名空间在 MSDN 上的此参考 似乎包含我需要的类,但该程序集似乎不存在.

                  I did find this reference on MSDN for the Microsoft.Xaml.Interactions namespace which appears to contain the classes I need, but that assembly doesn't appear to exist.

                  我觉得我在这里遗漏了一些明显的东西.我不明白他们如何能够对响应事件这样基本的事情做出重大改变.

                  I feel like I'm missing something obvious here. I don't see how they could make a breaking change to something as basic as responding to events.

                  推荐答案

                  使用 Visual Studio 2017 安装程序安装Blend for Visual Studio SDK for .NET",您可以在单个组件"页面上找到SDK、库和框架"标题.

                  Use the Visual Studio 2017 installer to install "Blend for Visual Studio SDK for .NET", which you can find on the "Individual components" page, under the "SDKs, libraries, and frameworks" heading.

                  这篇关于Visual Studio 2017 - 表达式交互发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                  Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                  Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                  How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                  how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                  JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)
                  <tfoot id='jpoRL'></tfoot>
                  <i id='jpoRL'><tr id='jpoRL'><dt id='jpoRL'><q id='jpoRL'><span id='jpoRL'><b id='jpoRL'><form id='jpoRL'><ins id='jpoRL'></ins><ul id='jpoRL'></ul><sub id='jpoRL'></sub></form><legend id='jpoRL'></legend><bdo id='jpoRL'><pre id='jpoRL'><center id='jpoRL'></center></pre></bdo></b><th id='jpoRL'></th></span></q></dt></tr></i><div id='jpoRL'><tfoot id='jpoRL'></tfoot><dl id='jpoRL'><fieldset id='jpoRL'></fieldset></dl></div>

                    <bdo id='jpoRL'></bdo><ul id='jpoRL'></ul>
                      <tbody id='jpoRL'></tbody>

                    <small id='jpoRL'></small><noframes id='jpoRL'>

                            <legend id='jpoRL'><style id='jpoRL'><dir id='jpoRL'><q id='jpoRL'></q></dir></style></legend>