我有一個像這樣的XAML代碼<ListView.GroupStyle> <GroupStyle> <GroupStyle.ContainerStyle> <Style TargetType="{x:Type GroupItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Expander IsExpanded="True" Background="Transparent"> <Expander.Header> <StackPanel> <TextBlock Text="{Binding ItemCount}" Foreground="{Binding}"></TextBlock> </StackPanel> </Expander.Header> <ItemsPresenter/> </Expander> </ControlTemplate> </Setter.Value> </Setter> </Style> </GroupStyle.ContainerStyle> </GroupStyle></ListView.GroupStyle>在<TextBlock Text="{Binding ItemCount}" Foreground="{Binding}"></TextBlock> 我看不到任何財產(chǎn)ItemCount在DataContext窗口和的ListView。那是哪里ItemCount來的呢?當我按F12導航代碼時,Visual Studio找不到定義。請說明它的來源以及它是經(jīng)常使用的財產(chǎn)嗎?
- 1 回答
- 0 關注
- 383 瀏覽
添加回答
舉報
0/150
提交
取消