我使用Visual Studio 2013專業版,C#, 我已經得到了這些使用和在我的代碼行。C# - 無法使用SystemParameters,「類型或命名空間不存在」
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 System.Windows.Forms;
this.Width = System.Windows.SystemParameters.PrimaryScreenWidth;
但是它已經得到了這樣的錯誤「類型或命名空間名稱‘SystemParameters’在命名空間中不存在‘System.Windows’(是否缺少程序集引用?)」
我真的不明白髮生了什麼,我應該添加更多的東西來使用systemparamaters?
你可以得到表格的高度和寬度,查看我的答案。 – Dayan