Triggers in Style RRS feed

  • Question

  • Is it possible to use attached dependency property System.Windows.Interactivity.Interaction.Triggers in styles?

            <Style TargetType="Window"> 
    <Setter Property="Title" Value="WindowStyleTest"/> 
    <Setter Property="windowsInteractivity:Interaction.Triggers"> 
    <windowsInteractivity:EventTrigger EventName="MouseDown"/> 

    It gives me an error 'Set property System.Windows.Setter.Property threw an exception. -> Value cannot be null. Parameter name: property'.

    Wednesday, November 3, 2010 7:14 AM

All replies

  • No


    Someone changed the String in RegisteredAttached() to "ShadowTriggers" while the method sig is still GetTriggers().

    Look at it in ILSpy or Reflector.

    You can work around this bug by creating your own Exposure of this property but you still run into a problem with the TriggerCollection being Frozen in a style.


    Wednesday, December 5, 2012 12:07 AM