Hi,
I am using a XamGrid with a TemplateColumn. This column has an header template like this :
<ig:TemplateColumn.HeaderTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <sdk:Label Content="Produit" Margin="0,0,5,0"/> <Button x:Name="btnProduitsServices" Content="+" Margin="0,0,10,0" DataContext="{Binding GestionBDCViewModel, Source={StaticResource Locator}}" Click="btnProduitsServices_Click" IsEnabled="{Binding AccessibiliteBtnProduitsServices, Mode=OneWay}"/> </StackPanel> </DataTemplate> </ig:TemplateColumn.HeaderTemplate>
The button opens a ChildWindow. Then, when I click on the button, the XamGrid pass on Edit Mode. If I click a second time on the button, the ChildWindow is correctly opened.
Is there a way to open the ChildWindow, even if the XamGrid is not on Edit Mode (in my case on the first click)?
Thanks for your help,
Olivier
Do you have the grid set to enter edit mode on activation? Do you have a sample showing the behavior you are describing? When I try it out the button click raises as soon as I click the button.