Moved context menu code to stack panel so it can be used and implemented...

... a simple bit of code to return the data context of selected item in list