I don't think you can show/hide them programatically using C# or VB. The user toggles them by swiping upwards from the bottom of the screen, similar to the Action Center. They take up the bottom 40px of the screen, so Lumias that have them have screens 40 pixels higher than the standart resolution but this doesn't apply for all phones. I couldn't find any API for it but there are only a few phones with on-screen buttons so you can check that until there is one.