Unbound Recipe TargetCondition [英] Unbound Recipe TargetCondition

查看:85
本文介绍了Unbound Recipe TargetCondition的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!!!!根据我的理解,对于未绑定的食谱出现在上下文菜单中,需要一个TargetCondition。任何人都可以告诉我应该在哪里指定这个目标条件。我在互联网上搜索,但没有人告诉WHERE或如何指定。任何人都可以给我一个CONCRETE示例,这可能非常简单,只是为了了解指定TargetCondition的位置和方式,Recipe Framework检查在上下文菜单中包含配方???

任何答案 将 非常感谢!!!

Hello everybody!!!

As I understand, for unbound recipe to appear in a context menu, a TargetCondition is needed. Can anybody tell me WHERE should I specify this target condition. I searched all over the Internet, but nobody tells WHERE or HOW to specify. Can anybody give me a CONCRETE example, which can be REALLY SIMPLE, just to understand where and how to specify TargetCondition, that Recipe Framework checks to include recipe in context menu???

Any answers would be GREATLY APPRECIATED!!!

推荐答案

你可以创建一个默认的GAT指导包,看看参考实现以及如何使用它们指导包配置。例如:

    &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; < Action Name =" CreateUnboundRecipeRef"类型=" RefCreator" AssetName =" AddRecipeReference"
    &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; ReferenceType =" GuidancePackage6.References.AnyElementReference,GuidancePackage6" />

HTH,
Adrian
You could create a default GAT Guidance Package and take a look at the references implementation and how thay are used in the Guidance Package config. For example:

                <Action Name="CreateUnboundRecipeRef" Type="RefCreator" AssetName="AddRecipeReference"
                        ReferenceType="GuidancePackage6.References.AnyElementReference, GuidancePackage6" />

HTH,
Adrian


这篇关于Unbound Recipe TargetCondition的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆