Version

IsChrome Property

Indicates whether the browser being rendered to is Chrome.
Syntax
'Declaration
 
Public ReadOnly Property IsChrome As Boolean
public bool IsChrome {get;}

Property Value

True if the browser detected by View was Chrome; false otherwise.
Exceptions
ExceptionDescription
System.NullReferenceExceptionThrown when the View property has not been properly initialized by the subclass in it's constructor before the IsChrome property is first read.
Remarks

Rendering logic must sometimes render conditional markup or attributes when Chrome is detected as the browser.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also