設定Button的 IsDefault=”True”,即可。 拓展: Button.IsCancel 屬性:擷取或設定一個值,該值訓示是否 Button 是一個取消按鈕。 使用者可以通過按 ESC 鍵來激活取消按鈕。