Hi,
I want to dosomething like on XamDataGridFieldLayoutSettings :
AllowAddNew="{Binding MyBoolValue, Converter={StaticResource InvertBoolToBoolConverter}}"
but it's not work (it's work on IsEnabled property of an XamTextEditor on same user control)
An issue ? Thanks
Hello,
When binding a property from FieldLayoutSettings and FieldSettings collections the difference is that the properties are not in the visual tree and therefore need their source explicitly set like so:
<igDP:XamDataGrid.FieldLayoutSettings >
<igDP:FieldLayoutSettings AddNewRecordLocation="OnBottom" >
<igDP:FieldLayoutSettings.AllowAddNew>
<Binding Path="AllowAddNewProperty" Source="{StaticResource VM}" />
</igDP:FieldLayoutSettings.AllowAddNew>
</igDP:FieldLayoutSettings>
</igDP:XamDataGrid.FieldLayoutSettings>
In this case I have used a ViewModel approach intanciated like so:
<Window.Resources>
<local:MainViewModel x:Key="VM" />
</Window.Resources>
Hope this is what you needed.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Thanks,
But I want to Bind on a currentItem on view with in a observablecollection in usercontrol datacontext.
My value is MyObservableCollection/MyBool and a converter is use too ...
It doesn't work ! Thanks