Make sure that LayoutInfalter.Factory is set