I have a PropertyGrid I am showing on a popup dialog. The requirement is when the dialog shows and the property grid is populated I need to select and put focus in the first (or any particular) property of the grid.
I have found several ways to do this using theItemContainerGenerator.ItemFromContainer to get the tree item and then set it selected. But my problem is I need to do this as soon as the grid is populated and I cannot find any notification of when the visual tree for the grid is done. Or maybe there is an even better way of handling this, any help is appreciated.