Display priority for elements and reference files

Would someone explain how MS display priority works or where I can go to read about it. I am using XM.

Thanks,

Craig