0
我只想爲我的ListView
定義一個自定義DataTemplate
以顯示某個類的某些數據。 在早期的一個項目(C#,.NET 3.5,WPF)我有這樣的事情:用於ListView.ItemTemplate的MultiBinding DataTemplate?
<Style x:Key="Custom_ComboBox_Style" TargetType="{x:Type ComboBox}">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} {1} Members">
<Binding Path="Name"/>
<Binding Path="MemberCount"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
不幸的是,這並不在我目前的WinRT項目工作:( 我搜索谷歌和發現指出的WinRT沒有MultiBinding
了。 我找不到任何解決這個問題直到現在。 任何想法(S)如何解決這一點,並提前實現一個類似DataTemplate
像一個以上?
謝謝!