dynamit93 / Tibiafuskdotnet

0 stars 1 forks source link

CavebotMenu when Choosing Tool Getting Binding Error. #12

Open dynamit93 opened 1 year ago

dynamit93 commented 1 year ago

when choosing Rope&Shovel in CavebotMenu this error appair.

the code behind is in CavebotMenu.xaml CavebotMenuviewmodel.cs, Items.cs and ItemLists.cs

System.Windows.Data Error: 23 : Cannot convert 'Pick' from type 'Item' to type 'System.UInt32' for 'en-US' culture with default conversions; consider using Converter property of Binding. NotSupportedException:'System.NotSupportedException: UInt32Converter cannot convert from Tibia.Objects.Item. at System.ComponentModel.TypeConverter.GetConvertFromException(Object value) at System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)'