Page 1 of 1

Custom Behaviors Support?

Posted: 09 Dec 2015, 07:33
by clayzx
Does NoesisGUI support WPF's custom behavior?

Reference: https://msdn.microsoft.com/en-us/librar ... n.40).aspx

Re: Custom Behaviors Support?

Posted: 10 Dec 2015, 11:22
by sfernandez
Hi,

Behaviors is a framework from the Expression Blend SDK and we don't provide support for that yet. We will introduce them in a future release.

But I think you can obtain a similar approach by using Attached Properties. An attached property is the same as a DependencyProperty, which uses the PropertyChangedCallback to inject a behavior when setting the property in a DependencyObject.

Here is an example of attached properties posted by another user to manage mouse cursors: viewtopic.php?f=3&t=256&p=3551&hilit=attached#p3551

Re: Custom Behaviors Support?

Posted: 10 Dec 2015, 12:03
by jsantos
I have added this to our Trello board. Soon or later we should be compatible with the XAML Behaviors provided by Microsoft on GitHub.

https://github.com/Microsoft/XamlBehaviors/

Re: Custom Behaviors Support?

Posted: 20 Dec 2015, 16:38
by clayzx
Sounds good, thanks for your reply.

Re: Custom Behaviors Support?

Posted: 16 May 2017, 03:31
by nikobarli
Found this issue when searching if NoesisGUI supports something similar to Attached Behavior or Blend Behavior.
Just want to confirm if this issue is still open as of v2.0.1f1.

Re: Custom Behaviors Support?

Posted: 17 May 2017, 03:59
by jsantos
Behaviors are not yet implemented but we have plans to incorporate this "soon".