public void UpdateBackButton( )
        {
            // if there are VCs in the stack
            if (SubNavigationController.ViewControllers.Length > 1)
            {
                // only allow back if we're in regular landscape or portrait mode
                bool allowBack = false;
                if (SpringboardViewController.IsLandscapeWide( ) == true || SpringboardViewController.IsDevicePortrait( ) == true)
                {
                    allowBack = true;
                }

                // OR, if there's a current task, ask it if there should be an override
                if (CurrentTask != null)
                {
                    // if they return true, read their override result.
                    bool overrideBackResult = false;
                    if (CurrentTask.WantOverrideBackButton(ref overrideBackResult))
                    {
                        allowBack = overrideBackResult;
                    }
                }
                SubNavToolbar.SetBackButtonEnabled(allowBack);
            }
            else
            {
                SubNavToolbar.SetBackButtonEnabled(false);
            }
        }
        public override void ViewDidLayoutSubviews()
        {
            base.ViewDidLayoutSubviews();

            SubNavToolbar.ViewDidLayoutSubviews( );
        }