Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Hiding Status panel
With some application it is useful to take the whole area of the status pane to be used as part of the application area. In these cases the status pane can be easily hidden using following code:
if(StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_EMPTY)
Note that when changing the status pane layout you should always check first if the status pane is already using the layout.
After calling this line the Application user interfaces ClientRect() method will return the area covering all other areas expect the command button area. To switch back to the normal status pane you can use the following code:
if(StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL)
If you want to hide the status pane before launching the applications you can define the empty layout to be used as default by defining the default status pane in your resource file as follows: