Advertisement
Dennisaa

XThread01

Oct 3rd, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System.Windows;
  2.  
  3. namespace WpfCrossThread {
  4.  
  5.     public partial class MainWindow : Window {
  6.         public MainWindow() {
  7.             InitializeComponent();
  8.         }
  9.  
  10.         private void button_Click(object sender, RoutedEventArgs e) {
  11.             MyTextBox.Text = "this will clearly succeed";
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement