Check instead of Width DataContext.
Merge pull request #64 from vmoyseenko/DUI-LibraryWrapPanel(Object_type_check)

DUI: Object type check should be made more robust