How do I programmatically change the Title in a wpf window?

前端 未结 2 840
礼貌的吻别
礼貌的吻别 2020-12-11 00:41

How do I programmatically change the Title in a wpf window?


Change the

相关标签:
2条回答
  • 2020-12-11 00:59

    To change it you can simply alter the Title property from your code:

    this.Title = "Something new";
    
    0 讨论(0)
  • 2020-12-11 01:00

    Bind it to a property

    Title="{Binding WindowTitle}"
    
    0 讨论(0)
提交回复
热议问题