What is the action required to call sub task from main task?
If you are thinking the xaml as task. Then you can call the sub xaml from the main xaml by using Invoke workflow activity.
Hope it helps!!
Invoke workflow file is what you would use if the xaml is in same process
If different then use invoke process
Cheers