In the sample you have the treeChanged function which is
getting invoked when user selection in the tree changes right. You
will have to display the Image and content in this function. You
will have to create a container with Image and Text control on the
right and keep changing the source and text property of the Image
and Text control respectively in the change handler function.