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
XamGrid CellControl Behaviour

Hi Guys,

I would like to set CellControl Behaviour to handle enter edit mode. I should set Behaviour from styles because I use the same column in many places. But it can create only one instance of behavior and I get the next error:

Could you help me with that? Could you provide a sample project where Behaviour set from properties for CellControl type?

<utils:DataGridNameCellBehavior x:Key="XamGridNameCellBehavior"
IsEditing="{Binding IsInEditMode, Mode=TwoWay}" />

<utilities:BehaviorCollection x:Key="XamGridNameCellBehaviors"
<StaticResource ResourceKey="XamGridNameCellBehavior" />

<Style x:Key="XamGridNameCellStyle"
TargetType="{x:Type ig:CellControl}">
<Setter Property="utilities:InteractionHelper.Behaviors"
Value="{StaticResource XamGridNameCellBehaviors}" />

<ig:TemplateColumn Key="Name" x:Key="XamGridDetailGridNameColumn"
CellStyle="{StaticResource XamGridNameCellStyle}"
HeaderText="{x:Static properties:Resources.Name}">