using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using
我在元素主機中託管WPF應用程序,並且它在應用程序內部具有WPF用戶控件。在WPF應用程序中的某一時刻(因爲我知道Application類將是null,我實例化它,像這樣: if (Application.Current == null)
{
// create the Application object
new Application();
//
我想在用戶單擊提交按鈕時將用戶輸入插入到數組中。 這是我寫的,但它似乎並沒有工作。該表單稱爲form1,它是它自己的類,文本框是textbox1。注意:我是編程方面的新手。 //This is my array
private string[] texts = new string[10];
public string[] Texts
{
get { re