0
我有一個班級使用System.Windows.Controls.Button
。我想要做的是在畫布上找到按鈕位置。如何在WPF中獲取按鈕在畫布上的位置?
我發現的每個教程總是使用具有位置屬性的WinForms Button類(System.Windows.Forms.Button)的命令:bt.Location(Point)
。我無法改變我的按鈕,所以我需要找到一種方法來獲取System.Windows.Controls.Button引用的按鈕位置。是否有捷徑可尋?