Using Interaction.Triggers in WPF

I am trying to use System.Windows.Interactivity.Interaction with WPF from the MS Expression Blend SDK for .NET 4. The problem is that I can not find the attached property Interaction.Triggers. An interaction class exists, but I can only see 4 members: Equals, GetBehaviors, GetTriggers, ReferenceEquals. I looked at the properties of the link to System.Windows.Interactivity.dll in my project and found that the path

"C: \ Program Files (x86) \ Microsoft SDKs \ Expression \ Blend.NETFramework \ v4.0 \ Libraries \ System.Windows.Interactivity.dll"

So, I opened the file along this path using IL Disassembler and found that the interaction class does have a Triggers property attached, but the property is declared as private! Then I opened the same DLL in the \ Lib \ Desktop Prism SDK directory and found the same situation there. The versions of these libraries are 2.0.20525.0. There is also a System.Windows.Interactivity.xml file with the System.Windows.Interactivity DLL. In it, I found the following about TriggersProperty:

This property is not openly disclosed. This forces customers to use the GetTriggers and SetTriggers methods to access the collection, ensuring that the collection exists and is installed before it is used.

But I did not find any SetTriggers methods there. BTW, Silverlight Interaction has TriggersProperty as a public member.

, Interaction.Triggers WPF, , . ?

+3
1

- . :

  • System.Windows.Interactivity.dll Prism 4.1, Interaction.TriggersProperty VS2010.
  • , TriggersProperty ILDASM.
  • System.Windows.Interactivity.dll Blend SDK .NET 4, TriggersProperty .
  • , TriggersProperty ILDASM.

. , <i:Interaction.Triggers> WPF XAML System.Windows.Interactivity.dll Prism 4.1, .

, , ​​ILDASM, . , Prism , , , . Blend SDK, .

edit: : Resharper, , Interaction.TriggersProperty . Interaction.GetTriggers WPF. , - XAML, . "", . -, SDK Blend , Behaviors and Triggers XAML, Prism , .

+4

All Articles