I was facing problem adding objects to Local/Shared obj repository

My application was developed in WPF and .net

-- QTP is not generating script for WpfMenu items. For example File->Menu. While recording when you click on File and Menu items QTP is not generating script automatically.
-- When you do object spy for menu item i can able to see object properties.
My question: If QTP is not generating script, how to add object properties to repository?

I have tried following ways to add objects to repository but still i am not able to add

1. Through object repository and Obj repository manager- Opened object repository then click on "Objects->Add object to local" then i pointed to menu item (File) then script is not getting added to repository

Kindly help how to resolve above issue