我嘗試將模型綁定到xml.I在wpf中是如此新穎。但是ı不能使用這種語法。它給出了錯誤。它是「本地成員不被識別或不可訪問」wpf綁定的種類
<Grid local:GridHelpers.RowCount="{Binding RowCount}"
local:GridHelpers.ColumnCount="{Binding ColumnCount}" />
如何轉換此語法。這是xaml
我試試這個,但這不行。
<Grid>
<ContentPresenter
Name="--"
Content="{Binding ElementName=RowCount, Path=?}">
</ContentPresenter>
</Grid>
我Xmal位級相同的例子:https://rachel53461.wordpress.com/2011/09/17/wpf-grids-rowcolumn-count-properties/
你能解釋一下什麼是你想達到什麼目的? – Muds
ı嘗試綁定ı看看這個例子。但是這個綁定不適用於我https://rachel53461.wordpress.com/2011/09/17/wpf-grids-rowcolumn-count-properties/ – user2583040
你添加了本地作爲xmlns嗎?在你的xaml中? – Muds