Page 1 of 1

[C#] Crash when using a Setter in DataTrigger

Posted: 25 May 2017, 13:25
by Faerdan
Hey all,

When I use a Setter in a DataTrigger where a Setter for the same property exists in the Style, I get an AccessViolationException.

If I continue execution after the exception (while debugging) everything, including the DataTrigger, works correctly.

Here is the style markup:
<Style x:Key="PresetSelectButtonPathStyle" TargetType="{x:Type Path}">
  <Setter Property="Stroke" Value="Red"/>
    <DataTrigger Binding="{Binding IsCurrentPowerPreset}" Value="True">
        <Setter Property="Stroke" Value="Green"/>
    <DataTrigger Binding="{Binding IsCurrentPowerPreset}" Value="False">
        <Setter Property="Stroke" Value="Blue"/>
If I removed the Setter from the base Style the exception does not occur.

Using Noesis 2.0.2f2 C# SDK.

Reported in bug tracker:

Kind Regards,


Re: [C#] Crash when using a Setter in DataTrigger

Posted: 29 May 2017, 18:43
by sfernandez
Hi, I've asked you for some feedback in the bugtracker, we can continue there.