I am using coded ui automation in Visual Studio 2012. So I have a requirement where I have to write some generic/common methods which can be used with any type of UI control.

I an new to coded ui. How to write such methods so that i can reuse it in code. 

Basically, for example I want common methods for verifying certain control/Tiles/TAB/Objects is visible or not on UI.