第一个C#WPF应用

2021年5月12日 1 作者 SimpleAstronaut

虽然只是个页面,但是还是很高兴能学到新东西

下面是下载链接

C#源码在下边

using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Data;
 using System.Windows.Documents;
 using System.Windows.Input;
 using System.Windows.Media;
 using System.Windows.Media.Imaging;
 using System.Windows.Navigation;
 using System.Windows.Shapes;
 namespace WpfTESTApp1
 {
     /// 
     /// MainWindow.xaml 的交互逻辑     /// 

     public partial class MainWindow : Window
     {
         public MainWindow()
         {
             InitializeComponent();
         }
         public void TextBox_TextChanged(object sender, TextChangedEventArgs e)     
         {         
             string UserNameGet = TextBox.TextProperty.ToString();    
         }     
         private void Button_Click(object sender, RoutedEventArgs e)     
         {         
             string UserName = USget.Text.ToString();         
             Char[] PassWord = UserName.ToCharArray();         
             IfPass.Text = PassWord.ToString();     
         }     
         public void TextBox_TextChanged_1(object sender, TextChangedEventArgs e)     
         {         
             string PassWordGet = TextBox.TextChangedEvent.ToString();     
          } 
      }
 }