WPF Application using a global variable

c#, global-variables, wpf

Solution

The proper way, especially if you ever want to move to XBAPP, is to store it in

Application.Current.Properties

which is a Dictionary object.

Problem

I created a WPF application in c# with 3 different windows, `Home.xaml, Name.xaml, Config.xam`l. I want to declare a variable in `Home.xaml.cs` that I can use in both the other forms. I tried doing `public string wt = "";` but that didn't work. How can I make it usable by all three forms?

Original source