是否可以自定義xaml中的默認用戶控件標記?用戶控件的自定義xaml標記模板
比方說,我有一個名爲MyUserControl的用戶控件。
我想知道些什麼 - 是有可能,當我輸入
<controls:MyUserControl -and then type- >
,而不是隻用
<controls:MyUserControl ></controls:MyUserControl>
結束後會有
<controls:MyUserControl DependencyProperty="1" DependencyProperty="Person" ... ></controls:MyUserControl>'
基本上我想創建一個自定義模板,用於在xaml編輯器中自動完成用戶控制時使用。
目的是爲用戶顯示可用的屬性馬上
這就是Intellisense的用途。 – Sheridan
我想我清楚地解釋了這裏的意圖是不通過intellisence中的所有可能屬性,而是提供重要的直接屬性 – frno