Dialog with button for selecting element

please see this post Need help with my first xaml file - #6 by hoss53