1 using System
.Windows
; // Application, MessageBox, Window, RoutedEventArgs
5 public partial class MainWindow
: Window
12 void messageBoxButton_Click(object sender
, RoutedEventArgs e
)
14 // Programmatic use of string resource from StringResources.xaml resource dictionary
15 string localizedMessage
= (string)Application
.Current
.FindResource("localizedMessage");
16 MessageBox
.Show(localizedMessage
);