Posted 18 April 2021, 12:04 pm EST - Updated 3 October 2022, 11:40 pm EST
Hello.
C1.WPF.Grid.Ja 5.0.20203.37
Microsoft.Xaml.Behaviors.Wpf 1.1.31
ReactiveProperty 7.8.3
DataGird:
ComboBox GotFocus fires first by InvokeCommandAction
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<ComboBox Width="100" VerticalAlignment="Stretch">
<bh:Interaction.Triggers>
<bh:EventTrigger EventName="GotFocus">
<bh:InvokeCommandAction Command="{Binding ComboBoxFocus, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" PassEventArgsToCommand="True" />
</bh:EventTrigger>
</bh:Interaction.Triggers>
<ComboBoxItem>Item A</ComboBoxItem>
<ComboBoxItem>Item B</ComboBoxItem>
<ComboBoxItem>Item C</ComboBoxItem>
</ComboBox>
</DataTemplate>
</DataGridTemplateColumn.CellEditingTemplate>
c1:FlexGrid
ComboBox GotFocus does not fire first by InvokeCommandAction.
I need to use MVVM. So I’d like to use InvokeCommandAction.
Will it be fixed?