开发者

How can I put a return string value in the Text property of a text block?

开发者 https://www.devze.com 2023-01-17 15:39 出处:网络
Let\'s say I need to di开发者_如何学JAVAsplay the appliation version which is returned by a static method:

Let's say I need to di开发者_如何学JAVAsplay the appliation version which is returned by a static method: I don't know the syntax to called a static method or whether it is possible to do so. Please help.


You could create a dependency property and then get the version number of your assebly with this C# code.

System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号