public CachedTile([NotNull] Panel container, PositionKey key, double x, double y) { _key = key; _x = x; _y = y; State = TileState.Locked; UiCanvas = Win2dCanvasManager.Employ(container, this, x, y); }
/// <summary> /// Remove event bindings /// </summary> public void Detach() { Win2dCanvasManager.Retire(UiCanvas); _detached = true; }