updates for interaction helper

This commit is contained in:
jkuehner 2018-11-23 14:13:43 +01:00
Родитель e3dc4c8a0e
Коммит fd1e0d696d
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,11 @@ namespace ICSharpCode.WpfDesign.Designer.ExpressionBlendInteractionAddon
{
public static class InteractionHelper
{
public static DesignItemProperty GetBehaviorsCollectionProperty(DesignItem designItem)
{
return designItem.Properties.GetAttachedProperty(typeof(Interaction), "Behaviors");
}
public static IEnumerable<DesignItem> GetBehaviors(DesignItem designItem)
{
var componentService = designItem.Context.Services.GetService<IComponentService>();
@ -52,6 +57,11 @@ namespace ICSharpCode.WpfDesign.Designer.ExpressionBlendInteractionAddon
return null;
}
public static DesignItemProperty GetTriggersCollectionProperty(DesignItem designItem)
{
return designItem.Properties.GetAttachedProperty(typeof(Interaction), "Triggers");
}
public static IEnumerable<DesignItem> GetTriggers(DesignItem designItem)
{
var componentService = designItem.Context.Services.GetService<IComponentService>();