2010-05-30 64 views

回答

2

ApplicationSetting绑定不允许将任何表达式应用于该值。简单的解决方案是从Button中派生自己的控件。例如:

using System; 
using System.Windows.Forms; 

class MyButton : Button { 
    public bool Invisible { 
     get { return !Visible; } 
     set { Visible = !value; } 
    } 
} 
相关问题