Ok. After some time of looking through the properties I have found that I can implement something like the following for the Edit mode:
/// <summary>
/// Determines whether the app is in edit mode.
/// </summary>
/// <returns>
/// <c>true</c> if [is in edit mode]; otherwise, <c>false</c>.
/// </returns>
private bool IsInEditMode()
{
return !string.IsNullOrEmpty(CSContext.Current.Context.Request.Params["Page-EditMode"]) && CSContext.Current.Context.Request.Params["Page-EditMode"].ToLower() == "true";
}
Still need help with how to determine being in "Customize" mode.
Any ideas?
Thank you
Joz