Help getting started with Blend
Posted: 12 Jan 2022, 21:27
Hi,
I tried out NoesisGUI few years back and want to pick it up again. However I'm unable to get the blend Xaml to compile - specifically the <i:EventTrigger elements.
I started off with errors about missing Interactivity dll's, so added some nuget packages for those. I'm still getting errors "specified value cannot be assigned to the collection. The following type was expected: "TriggerBase".
The code in question is taken from the Menu3D sample.
Spent few hours on this already with no luck, so can anyone help give me some instruction?
What version of VS Blend should I be using? (I'm using VS2017)
What version of .NET should the project be targetting? It defaulted to 4.8.
What extra Nuget packages do I need to include in the project created from the "Open Blend Project" from Unity? I added NoesisGUIExtensions and https://www.nuget.org/packages/Expressi ... WPF/1.0.1
Is there anything else I need to do? I have even tried registering the System.windows.Interactivity.dll with gacutil but still same error.
Thanks,
I tried out NoesisGUI few years back and want to pick it up again. However I'm unable to get the blend Xaml to compile - specifically the <i:EventTrigger elements.
I started off with errors about missing Interactivity dll's, so added some nuget packages for those. I'm still getting errors "specified value cannot be assigned to the collection. The following type was expected: "TriggerBase".
The code in question is taken from the Menu3D sample.
Code: Select all
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
>
<Style x:Key="SettingContentStyle" TargetType="{x:Type HeaderedContentControl}">
...
<Setter Property="noesis:StyleInteraction.Triggers">
<Setter.Value>
<noesis:StyleTriggerCollection>
<i:EventTrigger EventName="MouseEnter">
<noesis:SetFocusAction TargetObject="{Binding Content, RelativeSource={RelativeSource AncestorType={x:Type HeaderedContentControl}}}"/>
</i:EventTrigger>
</noesis:StyleTriggerCollection>
</Setter.Value>
</Setter>
</Style>
What version of VS Blend should I be using? (I'm using VS2017)
What version of .NET should the project be targetting? It defaulted to 4.8.
What extra Nuget packages do I need to include in the project created from the "Open Blend Project" from Unity? I added NoesisGUIExtensions and https://www.nuget.org/packages/Expressi ... WPF/1.0.1
Is there anything else I need to do? I have even tried registering the System.windows.Interactivity.dll with gacutil but still same error.
Thanks,