Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
960
Binding EditingSettings AllowEditing to The View Model
posted

I want to activate/deactivate editing on a XamGrid from the menu, usually, to toggle a Xaml property using the view model (DataContext) I use Binding and a Converter. I've tried the following code:

<ig:XamGrid.EditingSettings>
  <ig:EditingSettings
      AllowEditing="{Binding Path=IsInEditMode, Converter={StaticResource boolToEditingTypeConverter}, Mode=OneWay}"
      IsMouseActionEditingEnabled="DoubleClick"
      IsEnterKeyEditingEnabled="True"
      IsF2EditingEnabled="True"
      IsOnCellActiveEditingEnabled="False" />
</ig:XamGrid.EditingSettings>

Where IsInEditMode is a property on my Viewmodel specifically a DependencyProperty.

The Converter is never called so I presume the binding path is not found. Maybe because the object path is not connected to the model but something else...

Can you tell me where I'm wrong?

thank you

Sabrina

Parents Reply Children
No Data