context
У меня есть DataGrid , как это упрощено в фрагментах кода ниже. IValueConverter.
This works as intended, except due to the nature of the NewItemPlaceHolder, i.e. within which the collection will always be empty, this "empty indicator" Button also shows up on the NewItemPlaceHolder row of the DataGrid, which is undesirable.
Вопрос
[*] Как я могу сделать так, чтобы кнопка не отображалась на newitemplaceholder row?
Это то, что могло бы быть охвачен в конвертере или может быть обработан в другом месте? Я в правильном направлении, это было бы очень оценено, заранее спасибо.
c#
class ItemsCollectionViewModel : BindableBase
{
public ItemsCollectionViewModel() { ... }
public ObservableCollection Items
{
get { ... }
set { ... }
}
}
class ItemViewModel : BindableBase
{
public ItemViewModel() { ... }
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... ted-as-emp