Hi Pavel,
Can you describe in more details what kind of control are you trying to imitate?
There are ways to customize controls more deeply using widget skins. This is the method used in various stencils like iOS, Android, Bootstrap and Foundation, each of them requiring a slightly different look. For example rounded borders is on common requirement. If you are trying to create a reusable control then skinning might be the way to go.