我有這勢必以下類型的項目的List
一個ListView
:如何在ListBox中閃爍項目時屬性更改
class Item : INotifyPropertyChanged
{
//Both these props have property change notification implemented. Left out for brevity.
int Price{get;set}
int Size{get;set}
}
我有一個DataTemplate
這個類中ListView
列表大小不會更改,但列表中項目的屬性的值會更改。假設我首先得三個項目是這樣的:
Item format : [email protected]
{([email protected]), ([email protected]), ([email protected])}
現在假設第一個項目只更改由於數據更新:
{([email protected]), ([email protected]), ([email protected])}
請注意,我不刪除現有項目。我只改變它的屬性。因此,每次更改都會觸發屬性更改通知。我想突出顯示/閃爍在ListView
更改的項目。我該如何做(最好在XAML中)?
我會試試這個!謝謝。 – nakiya
@nakiya你真的嘗試過嗎? – Viv