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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -