Author Topic: Is it possible to pass static parameter values with the new delegate system?  (Read 2338 times)

boudinov

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Hi,
I am wandering why this is not an option - it will make UI controls interaction even more flexible - out of the box. Is there some hard technical limitation to achieve this?
Thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Static parameters don't have an object reference. EventDelegate uses object+funcName to determine what the function should be. Same with the property bindings -- object+property name. If there is no "object", there is no way to determine the function. I'd have to store the type as well. I may add it in the future, but that's the reason why it's not done now.