[R2D] Improved resource creation/retrieval
[R2D] Made UIElement.Contains non abstract