Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 706 Bytes
namespace MySampleApp // Namespace must be the same as what you set in project file
{
using System;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Navigation;
using System.Globalization;
using System.Threading;
using System.Resources;
using System.Reflection;
using System.Windows.Resources;
public partial class MyPage
{
//<Snippet2>
void OnClick(object sender, RoutedEventArgs e)
{
ResourceManager rm = new ResourceManager ("MySampleApp.data.stringtable",
Assembly.GetExecutingAssembly());
Text1.Text = rm.GetString("Message");
}
//</Snippet2>
}
}