Hello,
How do you let a user to edit a field after checking in the ViewModel. This is the XAML code.
Sincerly
<igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="IsReadOnly" Value="{Binding Path=AllowEdit}"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings>
Hello Stefan,
There is a problem where I always stay with it. Sometimes join this than not. All the components that use InfragisticsWPF4 v 12.1. Is this error ever occurred to you?
The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals
Grts
Johan
Hello Johan,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
With the help of a colleague, we first have a command created using eventargs this contains true or false.
public RelayCommand<EventArgs> AllowEditCommand { get; private set; }
AllowEditCommand = new RelayCommand<EventArgs>(IsAllowEdit);
<i:Interaction.Triggers> <i:EventTrigger EventName="EditModeStarting"> <cmd:EventToCommand Command="{Binding Mode=Oneway, Path=AllowEditCommand}" PassEventArgsToCommand="True" /> </i:EventTrigger> </i:Interaction.Triggers>
Than a EventTrigger in XAML and that works.
Grts.
I am just wondering did you manage to create the sample project, so I can investigate it further for you.
I try to create a small example project and send you it by.
Thanks Johan