我有一個用戶控件託管在辦公室Taskpane中,用於Word插件。 我試過按照DataTrigger to make WPF Button inactive until TextBox has value的回答和Cleanest way to bind a Button's visibility to the contents of two textboxes的回答,以便在兩個文本框中有非空內容時
我正在閱讀MSDN站點上的this文章,以便理解DataTrigger。 我創建了一個看起來像這樣的DefaultViewModel類。 namespace ControlTemplateDemo
{
public class DefaultViewModel
{
private List<ToDoItem> _list;
public Defau