2013-06-28 18 views

回答

1

默認禁用網格選擇。

在用戶控件創建一個屬性:

public bool AllowGridSelection 
{ 
    set 
    { 
     if (value) 
      //enable the grid here 
    } 
} 

然後設置從需要選擇頁面的代碼隱藏屬性enabled:

MyUserControl.AllowGridSelection = true; 
相關問題