Written by Andreas Ek umbraco 4.0How-to
Create menu, and controls for the canvas function in Umbraco
It is possible to extend and use the canvas functionality by code.
To check if the page is in “canvas-mode”:
if (umbraco.presentation.UmbracoContext.Current.LiveEditingContext.Enabled)
{
//…your code…
}