WPF Application using a global variable

前端 未结 6 2044
余生分开走
余生分开走 2020-12-08 11:10

I created a WPF application in c# with 3 different windows, Home.xaml, Name.xaml, Config.xaml. I want to declare a variable in Home.xaml.cs that I

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 11:42

    App.xaml:

    
    
        Hello, Application world!
    
    

    Code-behind:

    Application.Current.FindResource("strApp").ToString()
    

提交回复
热议问题