Hi!
I would like to know how to enable a button when items.count > 0 and disable it when items.count == 0 but into XAML using binding. I did this:
converter is:
 
But it not works
thanks
                                I would like to know how to enable a button when items.count > 0 and disable it when items.count == 0 but into XAML using binding. I did this:
<Button x:Name="btnAceptar" Content="Aceptar" Command="{Binding GrabarCommand}" IsEnabled="{Binding ElementName=grdGrid, Path=Items.Count, Converter={StaticResource ConvertidorHabilitacionItemsGrid}, Mode=OneWay}" >converter is:
public class ConvertidorHabilitacionItemsGrid : IValueConverter {     public object Convert(object value, Type targetType, object parameter, CultureInfo culture)     {         return !((int)value == 0);     }     public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)     {         throw new NotImplementedException();     } }But it not works
thanks
