1 namespace MySampleApp
// Namespace must be the same as what you set in project file
4 using System
.Windows
.Controls
;
6 using System
.Windows
.Navigation
;
7 using System
.Globalization
;
8 using System
.Threading
;
9 using System
.Resources
;
10 using System
.Reflection
;
11 using System
.Windows
.Resources
;
13 public partial class MyPage
15 void OnClick(object sender
, RoutedEventArgs e
)
17 ResourceManager rm
= new ResourceManager ("MySampleApp.data.stringtable",
18 Assembly
.GetExecutingAssembly());
19 Text1
.Text
= rm
.GetString("Message");