My xamdatagrid has a column/field that contains an embedded button. I am letting the click event be handled by the record activated event of the xamDataGrid, so that I can do some work with the record. The problem I am running into is that the button seems to hold focus. My xamDatagrid is contained within a content pane. At the end of the event I unpin the pane. The button seems to hold focus and not let the unpinning go forward.
Are you sure that the pane is not unpinning or is it that the unpinned flyout is remaining visible? The flyout would remain visible if the pane contained the element with keyboard focus and therefore was active. Note, you can use the ContentPaneCommands.FlyIn command to force the flyout for a pane to be hidden. If that's not the issue then can you post a sample that demonstrates the issue?
Yes it was the flyout. I set the command to execute on my click event for my embedded button and it worked. Thanks for the help.