Saturday, 15 March 2014

c# - How to use extension in object passed to usercontrol -



c# - How to use extension in object passed to usercontrol -

let's have exampleclass class taken businessobjects library , don't want alter in way.

in presenter wpf application have extension:

internal string extension1(this exampleclass exampleinstance) { homecoming "it works!"; }

then want display in usercontrol exampleusercontrol , want display extension1 property. how can done?

i'd appreciate answers.

ps. may utilize mvvm patern or other, don't have problem , example. i'm curious there way utilize extension methods in xaml presenter.

c# wpf data-binding

No comments:

Post a Comment