[英]Rect, where is it?
這讓我發瘋,創建了新的控制台應用程序項目,然后
// adding it as reference of course
using System.Windows;
// somewhere in method
var rect = new Rect(1, 2, 3, 4); // no Rect
找不到類型或名稱空間名稱“ Rect”(是否缺少using指令或程序集引用?)
Rect
會發生什么?
您應該添加WindowsBase.dll
作為對項目的引用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.