c# - Binding Window.Title to Application method -
i'm doing following in window.loaded
event. there way same through xaml instead, using {binding}
or something?
this.title = application.resourceassembly.getname().name;
i tried following , few variations of it, don't appear work:
title="{binding source=application.resourceassembly, path=getname}"
you can bind method. however, effort of implementing exaggerated in comparison binding property wraps method call. documentation , guide, how bind method, can found on msdn.
Comments
Post a Comment