/// <summary> /// Initializes a new instance of the <see cref="Canvas"/> class. /// </summary> /// <param name="skin">Skin to use.</param> public Canvas(Skin.SkinBase skin) { Dock = Dock.Fill; SetBounds(0, 0, 10000, 10000); SetSkin(skin); Scale = 1.0f; BackgroundColor = Color.White; ShouldDrawBackground = false; m_DisposeQueue = new List <IDisposable>(); FontCache.CreateCache(skin.Renderer); }