When setting field visibility in code like this:
FieldLayouts[0].Fields["FieldName"].Visibility = Visibility.Collapsed;
FieldPositionChanged event isn't fired. When changing field visibility by using FieldChooser everything is OK.
Hi Anton,
It turns out this is the expected behavior for code execution following the Windows Forms pattern assuming that the developer can would know when this is executed and can respond accordingly. I can suggest simply calling the EventHandler method on your own right after you modify the FieldPosition or add a similar logic right after it.
Hope this makes things clearer. Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support