Created
June 9, 2020 16:12
-
-
Save vncloudsco/eab0cbac2fb39b8cfb688a42187be375 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tạo mới button button = new Button(); | |
//xác định thuộc tính cho button button.Content = "Hello World"; | |
button.LayoutTransform = new ScaleTransform(3, 3); button.Margin = new System.Windows.Thickness(10); | |
//thêm phương thức xử lý sự kiện Click cho button button.Click += new RoutedEventHandler(button_Click); | |
//đưa button vao Window this.Content = button; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment