asusralis
Topic Author
Posts: 152
Joined: 30 Jul 2018, 05:03

Is it possible to create a custom binding type in Noesis?

18 Sep 2022, 12:21

I want to create a binding with custom functionality. Is this possible to do in Noesis and use it in markup the same way you'd use a regular Binding?
 
User avatar
maherne
Site Admin
Posts: 53
Joined: 01 Jul 2022, 10:10

Re: Is it possible to create a custom binding type in Noesis?

19 Sep 2022, 11:54

You can add your own markup extensions by extending the MarkupExtension class and overriding the ProvideValue method.

See the official WPF documentation for custom markup extensions: https://learn.microsoft.com/en-us/dotne ... on-classes

If you want to replicate the Binding MarkupExtension's behaviour, or part of it, you'll need to replicate it's functionality in your code. The binding extension itself is not extensible.

If you let me know the functionality you desire I'll give you more information on how it might be achieved.

Who is online

Users browsing this forum: Bing [Bot] and 3 guests